Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
CornCobs
2y ago
0 comments
Save
Share
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.
0 comments
1 comments · 1 top-level
top
newest
oldest
agumonkey
2y ago
Sidenote, the evaluation model of python can be surprising. List comprehension will create implicit function scopes that can trip you up.
j
/
k
navigate · click thread line to collapse