mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
trying out new arrows for function literals -> is a function, => is a bound function
This commit is contained in:
@@ -34,7 +34,7 @@ methods: ['one', 'two', 'three']
|
||||
|
||||
for method in methods
|
||||
name: method
|
||||
obj[name]: =>
|
||||
obj[name]: ->
|
||||
"I'm " + name
|
||||
|
||||
print obj.one() is "I'm one"
|
||||
|
||||
Reference in New Issue
Block a user