| ▲ | crazygringo 2 days ago | ||||||||||||||||
This is just like... SQL 101 for transactions and locking. These are basic, elementary concepts in databases. There's nothing "incorrect by construction". The author claims the original snippet "looks completely reasonable". It absolutely does not, if you know anything about client-server databases. | |||||||||||||||||
| ▲ | Bjartr 2 days ago | parent [-] | ||||||||||||||||
Not going past the end of a string or array is C 101 and yet buffer overruns abound. Rust's memory model doesn't do anything you shouldn't already be doing in C, but it provides real value because in practice people are demonstrably bad at doing those things. So would a SQL variant or successor that made these "beginner" mistakes a lot harder to make. | |||||||||||||||||
| |||||||||||||||||