4 ms·
How is that snippet any better than: x := 42 Or let x = 42 Or x = 42 It seems like a regression from modern languages.
by j_w 8mo ago
How is that snippet any better than:
x := 42
Or
let x = 42
Or
x = 42
It seems like a regression from modern languages.
- bmn__ 8mo ago"my" is 33% shorter than "let" Example 1 and 3 are not declarations, so apples ↔ oranges
- yossi_peti 8mo agoExample 1 is a declaration in Go. Example 3 is a declaration in Python.
- j_w 8mo agomy $x = 42; let x = 42 Well, when you add in the '$' and ';' tokens the "let" example is still shorter. Also as another person replied to you, those other two examples are declarations in other languages. So 0 for 3 there.