2 ms·
I remember this kind of thing from days gone by with coffeescript, and the absolute hell it caused. It may have been made worse by js being callback-heavy, but
by tech2 6y ago
I remember this kind of thing from days gone by with coffeescript, and the absolute hell it caused. It may have been made worse by js being callback-heavy, but assuming I had a function:
def bob(cb, *args):
do some stuff...
Then the call:
bob somefn, 2, 3
Works. But I remember having hellish times tracking down issues when you missed a single comma.
bob somefn 2, 3
Now you have bob being passed the result of evaluating the callback (early) with 2, 3 - and this is discovered at runtime. Ugh!