without getting an error, and it would be nice if it were possible to use operators as if they were names, much as in Haskell:
reduce(+, 0, [11,22,33]) // 66
In Haskell the operator must generally be in parentheses (+), and of course this would sometimes be required in LES too (+(2,3) means something quite different than (+)(2,3), and I propose that ==(2,3) would remain illegal).
Sometimes you just want to write
without getting an error, and it would be nice if it were possible to use operators as if they were names, much as in Haskell:
In Haskell the operator must generally be in parentheses
(+)
, and of course this would sometimes be required in LES too (+(2,3)
means something quite different than(+)(2,3)
, and I propose that==(2,3)
would remain illegal).