2 ms·
> The only language I've found / used so far that has these (expected) mechanics is Swift Rust has similar semantics: https://is.gd/hsRjPh https://is.gd/hsRjPh
by masklinn 10y ago
> The only language I've found / used so far that has these (expected) mechanics is Swift
Rust has similar semantics: https://is.gd/hsRjPh https://is.gd/hsRjPh versus https://is.gd/ROgzXl https://is.gd/ROgzXl
IIRC you can also declare const objects in C++, but constness is more complex and overridden there.