Comment

Comment by masklinn

> 2 - no allocation : , does'nt the lambda closure need to be allocated somewhere ?

I expect it is embedded in the state machine structure. In Rust (and C++) lambdas/closures are "value types".

parent masklinn 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton