Except maybe one: he seems intent on making the /x modifier on by default in a regular expression. I have to admit that this will encourage the use of cleaner regex code, but I'm a little concerned about how this will affect newcomers to the language.
It's not unreasonable for beginners to expect a literal space character to match the whitespace in their strings. And even though they probably should be using \s+ instead of space characters, the truth is that this makes the language a little bit harder to learn. I find this amazing, since many of the other Perl6 syntax changes seem to have the goal (or at least a side-effect) of making Perl easier to learn.
Does anyone else have an opinion on this, before it becomes set in stone?
buckaduck
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: /x on regexes in Perl6?
by japhy (Canon) on Jul 31, 2001 at 01:44 UTC | |
by chromatic (Archbishop) on Aug 06, 2001 at 07:08 UTC | |
|
Re: /x on regexes in Perl6?
by spudzeppelin (Pilgrim) on Jul 31, 2001 at 02:58 UTC | |
|
Re: /x on regexes in Perl6?
by VSarkiss (Monsignor) on Jul 31, 2001 at 07:25 UTC | |
|
Re: /x on regexes in Perl6?
by iakobski (Pilgrim) on Jul 31, 2001 at 13:53 UTC | |
|
Re: /x on regexes in Perl6?
by buckaduck (Chaplain) on Aug 08, 2001 at 01:56 UTC |