Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
CornCobs
1y ago
0 comments
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
default
newest
oldest
agumonkey
1y 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