in reply to Re: Re: Order of operations, mutators, aliasing and whammies
in thread Order of operations, mutators, aliasing and whammies
If you define an order of evaluation, it would probably be:f ($a) + g ($a)
Last but not least, if the order of evaluation is defined, people will start writing code that depends on this. This will lead to fragile code, that will break if you swap the arguments of an otherwise symmetric operator.
Finally, I don't see how lazy evaluation and a defined order of evaluation combine to a happy programming language. Perl6 will have a defined order of evaluation, and have lazy evaluation. I wonder how Larry is going to pull off that one.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Order of operations, mutators, aliasing and whammies
by Jenda (Abbot) on Sep 09, 2003 at 14:05 UTC | |
by Abigail-II (Bishop) on Sep 09, 2003 at 14:15 UTC |