3 ms·
One of the advantages of languages with N-ary operators. * (a,b,c) can take advantage of those tricks, whereas the programmer can still be explicit and go * (a
by TheLoneWolfling 12y ago
One of the advantages of languages with N-ary operators.
* (a,b,c) can take advantage of those tricks, whereas the programmer can still be explicit and go * (a, * (b, c)), for example.
- srean 12y agoIndeed. Do you have some specific examples in mind, I would love knowing more. The usual suspects, for example fold_left, fold_right would typically adhere to fixed order for floating point operations. A reason Java is a FLOPs killer is that its standard is too strictly specified, it does not leave much room for the runtime to take advantage of these features. Even order of argument evaluation for functions are specified to be left to right.