in reply to Trinary Operator Semantics
It isn't so much that Perl's designers ignored good semantics, but that the language wasn't really designed at all.
I think that misses a much more interesting issue (and is potentially insulting as well). Perl is a very different type of language from C. The fact that it may not do the same types of optimizations as C compilers can do to the same degree that C compilers can do doesn't necessarily mean that Perl had no design stage nor that the Perl developers are lazy or ignorant.
By giving up the "compile once and for all and that's that" step, Perl has traded some potential optimizations for additional flexibility. I don't think that's an accident.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trinary Operator Semantics
by hardburn (Abbot) on May 27, 2005 at 14:01 UTC | |
by Joost (Canon) on May 27, 2005 at 16:50 UTC | |
by Roy Johnson (Monsignor) on May 27, 2005 at 17:07 UTC | |
by demerphq (Chancellor) on May 27, 2005 at 17:59 UTC | |
by Joost (Canon) on May 27, 2005 at 17:21 UTC | |
by chromatic (Archbishop) on May 27, 2005 at 16:27 UTC | |
by kscaldef (Pilgrim) on May 27, 2005 at 16:55 UTC | |
by hardburn (Abbot) on May 27, 2005 at 17:18 UTC |