Comment

Comment by dataflow

> Move by default. If you came from c++, I think this makes a lot of sense.

> Immutable by default.

In C++, these two fight each other. You can't (for the most part) move from something that's immutable.

How does Rust handle this? I assume it drops immutability upon the move, and that doesn't affect optimizations because the variable is unused thereafter?

parent dataflow 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton