3 ms·
Why did you use `track` for variables and `#` for lists instead of using the same syntax for both?
by jemmyw 9mo ago
Why did you use `track` for variables and `#` for lists instead of using the same syntax for both?
- javatuts 9mo agoScalars and collections have different update semantics. track() is for atomic updates, # is for structural mutations — separate syntax makes reactive tracking and optimization simpler.
- henryhale 9mo agowhy not abstract that away so that `track()` can do it all? It would be alot easier to work with.