Re: Proposal: 1) Number (integer or decimal) to Array 2) Array to Number (integer or decimal)

2019-03-07 Thread Augusto Moura
There is space for improvement in low level programming in Javascript, sure isn't the main focus of the language, but I don't think unobtrusive proposals should be a problem. There's a lot of C/C++ number apis that would be really useful in some use cases (I'm thinking now in matrix operations,

Re: Proposal: 1) Number (integer or decimal) to Array 2) Array to Number (integer or decimal)

2019-03-07 Thread guest271314
Not sure if your failure thus far to gather what the proposal is actually suggesting is based on your limited experimentation in using numbers in JavaScript, or some other reason. That is ok. Your second point illustrates the problem faced. Where your pseudo code uses String methods. That should

Re: Proposal: 1) Number (integer or decimal) to Array 2) Array to Number (integer or decimal)

2019-03-07 Thread Isiah Meadows
> What part of the proposal, in your view, did not read "it'd be nice if ..." > number to array <--> array to number specification and standardization? I think you missed my point in the first sentence. I'm saying the first thing on your mind when creating proposals *shouldn't* be "it'd be nice

Re: Proposal: 1) Number (integer or decimal) to Array 2) Array to Number (integer or decimal)

2019-03-07 Thread guest271314
> > @guest When making a language proposal, the first thing that should be on > your mind isn't , but the problems you're trying to solve. And these > problems can't just be simple toy problems like a code golf challenge - > they have to be real-world problems in code you write for sites, apps, >

Re: Proposal: 1) Number (integer or decimal) to Array 2) Array to Number (integer or decimal) (guest271314)

2019-03-07 Thread Isiah Meadows
That proposal wasn't about ranges, even though it might look like it was. It's about a special type of numeric array conversion that's really about a particular sequence that isn't all that special in the context of programming. [1] It also links to an SO question that almost reads like a

Re: Proposal: 1) Number (integer or decimal) to Array 2) Array to Number (integer or decimal)

2019-03-07 Thread Isiah Meadows
@guest When making a language proposal, the first thing that should be on your mind isn't "it'd be nice if ...", but the problems you're trying to solve. And these problems can't just be simple toy problems like a code golf challenge - they have to be real-world problems in code you write for

Re: Proposal: 1) Number (integer or decimal) to Array 2) Array to Number (integer or decimal) (guest271314)

2019-03-07 Thread Bob Myers
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. Quoting: It seems odd that after all these years of discussions and meta-discussions about ES feature proposals, some people are still saying

Re: Proposal: 1) Number (integer or decimal) to Array 2) Array to Number (integer or decimal)

2019-03-07 Thread guest271314
Am not concerned with "down" votes. Do not really care about "up" or "down" votes. Would only object directly to *censorship, *which unfortunately, is practiced from top-down (CEO; management; moderators; "trusted users"; etc.) at the linked sites. That is beyond the scope of this proposal.

Re: Proposal: 1) Number (integer or decimal) to Array 2) Array to Number (integer or decimal)

2019-03-07 Thread guest271314
Cannot get into "a large number of users" heads. Again, am not interested in overcoming conjecture. If the proposal does not meet you folks' criteria, so be it. On Thu, Mar 7, 2019 at 10:46 PM Steve Fink wrote: > Any addition to the JavaScript language needs to (1) be motivated by a use > case

Re: Proposal: 1) Number (integer or decimal) to Array 2) Array to Number (integer or decimal)

2019-03-07 Thread Jeremy Martin
It's entirely possible that I'm being thick here, but can you expand on the use case? - The initial link that you posted results in a code challenge that was voted down to a negative score as a result of ambiguity in the challenge description, and... - the two expressions you provided

Re: Proposal: 1) Number (integer or decimal) to Array 2) Array to Number (integer or decimal)

2019-03-07 Thread guest271314
Have you read the proposal, and the first response to your inquiry? It is simpler to have the ability to add, subtract, divide, or otherwise manipulate individual nth indexes of an integer or decimal represented as an array of integers potentially containing one decimal than trying to perform the

Re: Proposal: 1) Number (integer or decimal) to Array 2) Array to Number (integer or decimal)

2019-03-07 Thread Jeremy Martin
By "real world" we mean somewhere outside of a code challenge or similarly low utility program context. You mentioned statistics, for example. Can you reference a specific example from that domain where these methods would offer an advantage? On Thu, Mar 7, 2019, 5:05 PM guest271314 wrote: >

Re: Proposal: 1) Number (integer or decimal) to Array 2) Array to Number (integer or decimal)

2019-03-07 Thread guest271314
Not sure what you mean by "real world" use case. Described at least one use case at the proposal. Statistics; graphs; number and integer manipulation using indexes of arrays with ability to convert manipulated array back to number. On Thu, Mar 7, 2019 at 9:56 PM Naveen Chawla wrote: > What is

Re: Proposal: 1) Number (integer or decimal) to Array 2) Array to Number (integer or decimal)

2019-03-07 Thread Naveen Chawla
What is the real world use case, presuming it's not just an academic exercise On Thu, 7 Mar 2019, 9:08 pm guest271314, wrote: > Ability to adjust *nth* digit of an integer or decimal by adjusting > decimal or integer at *nth* index of array, to try to solve OEIS A217626 > oeis.org/A217626

Re: Proposal: 1) Number (integer or decimal) to Array 2) Array to Number (integer or decimal)

2019-03-07 Thread guest271314
The original motivation was trying to solve OEIS A217626 directly, that is, without generating all of the permutations, specifically, using only a multiple of 9 directly. See proposal at > Ability to adjust *nth* digit of an integer or decimal by adjusting > decimal or integer at *nth* index of