Proposal: 1) Number (integer or decimal) to Array 2) Array to Number (integer or decimal) (guest271314)
rtm at gol.com
Thu Mar 7 23:28:21 UTC 2019
There is already a very well thought out list, although to my knowledge it
has never been officially blessed, at https://esdiscuss.org/topic/ranges.
It seems odd that after all these years of discussions and meta-discussions
about ES feature proposals, some people are still saying things like:
- there really needs to be
- I'd really like
- I'd love to have
often without addressing a single one of the relevant questions:
1. *Is it sugar?* Is it "mere" syntactic sugar (which is not
disqualifying in and of itself), or something that requires (or benefits
from) being baked into the language?
2. *How much sugar?* If it is wholly or partially syntactic sugar, what
the degree of syntactic optimization?
3. *Frequency of benefit?* What is the frequency of the use case?
4. *Expected improvement*? If it is something that would benefit from
being baked into the language, what is the degree of the benefit (eg, in
terms of performance)?
5. *Userland implementable?* Can it be implemented in userland code? If
so, what's the downside of that?
6. *Implementable?* Does it present potentially difficult or intractable
7. *Consistent?* Is it consistent with existing syntactic and semantic
practices in the languages?
8. *Holistic?* Does it fill in some obvious logical gap in the current
9. *Understandable?* Does it place an unsustainable new "cognitive
burden" on learners and users of the language?
10. *Library?* Is is something that would be better provided as part of
some kind of future standard library?
11. *Intrusive?* Does it take over real estate that might be useful for
future features no one has thought of yet, the obvious example being using
12. *Readability?* Is it something that results in a distinct
improvement in readability or visible semantic correctness of code?
13. *Prior art?* Has this or a similar feature already been proposed,
and if so what was the reaction, and how is your proposal different from
that, or from a similar features existing in other languages?
I'm sure there are cases where simply throwing out an informal idea and
seeing how people react is useful to get a discussions started, but most
reactions will be that the proposal does not meet one or more of the above
criteria, so proposers could save themselves and other people lots of time
in advance by explaining HOW their proposal satisfies these points, not all
of which are relevant to every proposal, but those which are.
> It would be useful to have a FAQ somewhere with a version of the above 4
>> rules that is better worked out and justified, so we could point to that.
>> (From whatever public-facing forum is selected for the future; this one is
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss