3 ms·
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 her
by supportlocal4h 3y 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.