MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xyelry/makesmefeelsmart/19sttr86httd1/?context=3
r/ProgrammerHumor • u/deanominecraft • 9d ago
161 comments sorted by
View all comments
Show parent comment
1
The compiler can produce more efficient code if the exact type and captured variables of a lambda are known at compile time. Also, a lambda can reference the caller's local variables.
View all comments
Show parent comment
1
u/Rin-Tohsaka-is-hot 8d ago
The compiler can produce more efficient code if the exact type and captured variables of a lambda are known at compile time. Also, a lambda can reference the caller's local variables.