3 ms·
Here is coffeescript example: hello = -> alert "Hello, world!" hello() Why complicate things?
by igvadaimon 13y ago
Here is coffeescript example:
hello = ->
alert "Hello, world!"
hello()
Why complicate things?
- deleted 13y ago[deleted]
- allendoerfer 13y agoSame with python …
- tragomaskhalos 13y agoI don't know coffeescript, but "= ->" looks like one token too many already - why complicate things indeed.
- tel 13y agoIt creates a thunk so that alert is called as a result of calling `main` instead of as a result of defining it.
- nailer 13y ago+1 why complicate things console.log 'hello world'
- madlynormal 13y agodo hello = -> alert 'Hello, World!'