15 Mar
2014
15 Mar
'14
8:28 a.m.
On Sat, 15 Mar 2014 12:20:42 +0000 Oscar Benjamin <oscar.j.benjamin@gmail.com> wrote:
I don't think it's a premature optimisation. It's a significant algorithmic optimisation.
You could also make the multiplications lazy (and enforce the optimal order when computing the final result) rather than enforce that optimization at the language parsing level. It would be more flexible, and would also avoid potentially pessimizing other use cases. Regards Antoine.