in reply to Re: Why not support this syntax?
in thread Why not support this syntax?
Penultimately, I say it's definitely not complicated enough. When I can talk to it in English and have it do what I want, then it'll be complicated enough.
Well OK then, how does the proposal generalize to things like this:
$mystery = $a < $b < $c < $d < $f;
Quick - say: which one is the ternary operator? Why cause such problems when a little subroutine is enough?
In a less tongue-in-cheek mode, the complexity of the parser shouldn't, IMHO, drive the development of the language. The first sentence of the Preface of the Camel book is 'Perl is a language for getting your job done'. It's not 'Perl is a language with a reasonably, but not unreasonably, complicated parser'.
Perl is a language for getting your job done - right. After writing this little subroutine, the job is done. Why wait for other people to do jobs for you that you can do for yourself in 30 seconds.
Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why not support this syntax?
by tadman (Prior) on Apr 24, 2001 at 19:05 UTC | |
by clemburg (Curate) on Apr 24, 2001 at 19:29 UTC | |
by MeowChow (Vicar) on Apr 24, 2001 at 20:12 UTC | |
by scott (Chaplain) on Apr 30, 2001 at 18:13 UTC |