Comment

Comment by fasfsadfsa

There seemed to be valid questions like

> Things like ranges being `1..5` in one context but `1:5` in another

Is this true? Perhaps illustrate why "Slice expressions and range expressions [are] different was on purpose, as they are very different operations semantically". You should be able to clear that up easily by pointing to the language overview or something.

> but still having classic for loops which ranges almost completely obsolete

Is this unreasonable? And

> but why add the latter syntax to the language anyway, then tell people not to use it?

Same. If there are good reasons there should be good (and simple) explanations.

Questions like these should be an opportunity to clarify the whys of the language. Ignoring them is discouraging.

parent fasfsadfsa 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton