Y
Hacker News
new
|
ask
|
show
|
jobs
by
ResidentSleeper
2139 days ago
Looking at the syntax (as a Go beginner), I'm not really sure whether that's less or more to learn. Seems like one of those arbitrary language design decisions that don't make a huge difference either way.
2 comments
kevincox
2139 days ago
Yup. They saved a keyword or two but now you need to count the semicolons to see if there is an increment action.
I don't think it makes a big difference either way.
link
EdwardDiego
2139 days ago
Yeah when I picked up Go, the infinite loop caught me by surprise:
for { ... }
link
klyrs
2139 days ago
Looks like a minor simplification of
for (;;) { ... }
I'm biased by my experience with c, but I do like the explicit punctuation.
link
I don't think it makes a big difference either way.