Blogs / Personal blogs

Ivan Sagalaev

softwaremaniacs.org

Programmer, software architect, mentor. Interested in programming languages and methodologies. I am the principal author of highlight.js .

Popular posts
2
Total points
856
HN comments
500
Rank
#2,651 personal

Visit softwaremaniacs.org → On Hacker News Feb 2016 – Feb 2020

Software Engineering 2Programming Languages 2

2

Why Rust's ownership/borrowing is hard

Working with pure functions is simple: you pass arguments, you get a result — no side effects happen. If, on the other hand, a function does have side effects, like mutating its arguments or global objects, it's harder to reason about. But we've got used to those too: if you see something like player.set_speed(5) you…