3 ms·
one common issue i found is in the use of parantheses , around some expressions . f (c)->2*x , 5 is ambiguous when you read it ( not sure it even compiles ).
by camus 14y ago
one common issue i found is in the use of parantheses , around some expressions .
f (c)->2*x , 5 is ambiguous when you read it ( not sure it even compiles ).
or for generator expressions
f(x) if x<0 for x in E
is really ambiguous when you read it.
Maybe CS should be "less smart" and more strict regarding syntax. Because now the task of writing non ambiguous code lies in the hand of the developer. I really think the language should not evolve in a "super language for ninja" like COCO ( which is just too frightening and insane), just keep exposing the functional side of javascript in a better way.