logoalt Hacker News

jemmywtoday at 6:29 AM1 replyview on HN

Why did you use `track` for variables and `#` for lists instead of using the same syntax for both?


Replies

javatutstoday at 7:50 AM

Scalars and collections have different update semantics. track() is for atomic updates, # is for structural mutations — separate syntax makes reactive tracking and optimization simpler.

show 1 reply