[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[FWP] Changing the subject (was: Badly written code)



In article <m3u2mxalvi.fsf@flash.zfx.com>, Chip Turner <chip@zfx.com> wrote:
>But let's let it rest and get on to more fun things, shall we?

I'd like to share the following with you all.
Its a quote from Larry Wall in a recent p5p thread on adding a
warning for grep/map in void context.

Subject: Re: grep/map in void context
In article <199911012346.PAA25557@kiev.wall.org>,
Larry Wall <larry@wall.org> wrote:
>hv@crypt0.demon.co.uk writes:
>: Isn't the point that (void)'grep EXPR, LIST' is now better written as
>: 'EXPR for LIST'? Or am I misunderstanding your point here?
>
>It really doesn't bother me if people want to use grep or map in a void
>context.  It didn't bother me before there was a for modifier, and
>now that there is one, it still doesn't bother me.  I'm just not very
>easy to bother.
>
>The argument against using an operator for other than its primary
>purpose strikes me the same as the old argument that you shouldn't have
>sex for other than procreational purposes.  Sometimes side effects
>are more enjoyable than the originally intended effect.
>
>That being said, I'd never grep someone in a void context myself.
>
>Larry

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe