TypeScript Enums vs. Flow Enums
medium.com7 pointsby GeZe8 comments
$ grasp -r -e 'calc($a, $b)' -R 'calc({from: {{a}}, to: {{b}}})' file.js
(Where the two arguments to "calc" could be any arbitrary nested expressions, which could not be safely handled by a regular expression) f(__ < __, __ == __)
The only thing missing is the named wildcards for easy replace - that's a good idea and a feature to add to grasp 0.2.0! getUserFriends = (userName) ->
user <- findUser userName
friends <- findFriends user
...
Specifically, the section on "backcalls": http://livescript.net/#backcalls totals = map (.total), orders
http://livescript.net/ a <- doFirstThing()
b, c <- doSecondThing(a)
doFinalThing(b + c)