|
|
|
|
|
by jiehong
1422 days ago
|
|
Java falls a bit in between Go and Rust on that example: Closures only allow variables that are effectively final, aka you can’t reassign them (the compiler will stop you). But you could pass an object and update its internal state. |
|