Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
devit
· 5y ago · 0 comments
It seems to be a syntax mismash between Rust, which uses `let` and `let mut`, and JavaScript, which uses `const` and `var`, giving WGSL's `let` and `var`, probably chosen because they are the shortest.
Comments
[–]
djxfade
5y ago
Javascript also has `let`. It's basically like var, but doesn't get hoisted. And can't be unassigned once assigned.