2009/11/2 H.Merijn Brand <h.m.brand@xs4all.nl>:
> On Mon, 2 Nov 2009 22:13:47 +0100, demerphq <demerphq@gmail.com> wrote:
>
>> >> My gut reaction is the same as yours. What you describe gives me
>> >> a flutter in the stomach. The convenience to some doesn't justify
>> >> the added complexity. Conditional white-space sensitivity seems
>> >> to invite derision, not celebration.
>> >>
>> >> I also realize that my gut isn't a good predictor for what goes
>> >> into Perl. We got "//" even though it's not needed.
>> >
>> > But sooooooooooo convenient. There is hardly a script that I do not use
>> > it in. Since 5.8.0!
>>
>> I have a strange feeling that tom means the "empty regex syntax".
>
> Darn :)
> Very well possible. To prevent that confusion I always use m// (or m{}),
> even with grep
The only safe way i know to prevent that confusion is to use (?:....)
as a wrapper.
>
>> >> And we got "and", "or", and "not" (and "err"--sigh)
>> >
>> > No, there in no "err', nor is there the suggested "dor" and I
>> > personally very much regret that decision. Now || has or, && has and,
>> > but // has nothing.
>>
>> Yeah. This is stupid. We should just do this as 'dor'.
>
> I don't think we will win that argument, but you've got my vote!
Who knows, perhaps for once practicality and the needs of the
community will overwhelm dogma.
cheers,
Yves
--
perl -Mre=debug -e "/just|another|perl|hacker/"
Thread Previous
|
Thread Next