Y
Hacker News
new
|
ask
|
show
|
jobs
by
orhmeh09
746 days ago
Thank you for the correction. Is it possible to use NSE in say Python or JavaScript?
1 comments
CornCobs
746 days ago
Yes, though the languages do not support it explicitly you can simulate lazy evaluation by wrapping all your arguments in closures. This way they won't be evaluated until called within the function body.
link
agumonkey
745 days ago
Sidenote, the evaluation model of python can be surprising. List comprehension will create implicit function scopes that can trip you up.
link