Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
reikonomusha
on May 29, 2012
|
parent
|
context
|
favorite
| on:
False Cognates and Syntax: The Importance of Synta...
Make it even more ridiculous and wrap every branch in a lambda function, then do
test[true]()
mahcuz
on May 29, 2012
|
prev
[–]
That would only evaluate the original [true] key, though, right?
tgasson
on May 29, 2012
|
parent
[–]
No, `test[true]` will be reassigned to the given function each time the condition evaluates to true. Calling `test[true]()` will execute that given function.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: