livescript

LiveScript equivalent to fat arrow syntax in CoffeeScript or ES6


The => in CoffeeScript or ES6 is often useful for binding this to a function, especially in callbacks. I can't seem to find an alternative in LiveScript. Does it exist?


Solution

  • It's ~>.

    Answer courtesy of _rgn on the #livescript channel on freenode.