Hacker News new | ask | show | jobs
by supportlocal4h 1156 days ago
Compare your Rust with my JS:

let decrement = _=>set_value.update(value => value -= 1)

I don't understand your complaint about syntax. The real difference here is the concept of a move and a dereference. JS lacks these concepts and naturally has no syntax for them.