Re: Optional Curly Braces in JavaScript

2019-11-03 Thread Pier Bover
The TC39 efforts are already quite diluted to add major changes to the language which, no offense, don't really add anything of value. OP if you really want a whitespaced language for the browser check Imba: https://www.imba.io/ It's not only a programming language but also a React replacement.

Re: Proposal: Array.prototype.count

2019-01-07 Thread Pier Bover
If you need to find the length of a filtered array IMO it makes more sense and is more obvious to just use filter(). On Mon, Jan 7, 2019 at 1:12 PM Засим Александр wrote: > Hi everyone. This is proposal for Array.prototype.count (or countOf) > method which allow to count specific elements in an

Re: javascript vision thing

2018-07-25 Thread Pier Bover
Lurker here, I also agree with most points expressed by T.J. Crowder. JavaScript is a scripting language that can serve many purposes. I think the addition of class and async/await only make the language better, and if optional static types were included (a la TypeScript or ES4) it would probably

Re: Pointers

2018-03-19 Thread Pier Bover
So the proposal is basically having references to primitives like strings, bools, etc? On Mon, Mar 19, 2018, 6:59 PM Isiah Meadows wrote: > Yeah, I meant "references", not "pointers"... My bad. > - > > Isiah Meadows > m...@isiahmeadows.com > > Looking for web consulting? Or a new website? >

Re: Proposal: Optional Static Typing (Part 3)

2018-01-16 Thread Pier Bover
benefit -- if I decide to shift my code back to C++ and do web > assembly (waiting for the tools to mature and become more turn-key) this > makes it much easier to translate code, either way. > > [>] Brian > > On 1/16/2018 9:01 AM, Pier Bover wrote: > >> > javascript

Re: Proposal: Optional Static Typing (Part 3)

2018-01-13 Thread Pier Bover
a *shudder* message-queue) > to compensate, and perhaps search-and-replace the timeout value everywhere > a request to mongodb is made in your code. these are the kinds of bugs > that keep javascript-developers awake at night, not some kiddie > string-instead-of-number type-error. >

Re: Proposal: Optional Static Typing (Part 3)

2018-01-13 Thread Pier Bover
I strongly disagree with kai zhu. where is this demand coming from? newcomers from c# / java > who don't know anything about how javascript is used to ship > end-user-features and web-products? The idea that optional static typings (OST from now on) are some "contamination" from other languages

Re: javascript vision thing

2017-12-20 Thread Pier Bover
> > C#'s event model is like the DOM's or Node's if you were to factor event > names to separate variables, like `foo.bar.listen(callback)` instead of > `foo.on("bar", callback)`. Android's works similarly to JavaScript, > although it uses enums instead of strings. foo.bar.listen(callback) is no

Re: javascript vision thing

2017-12-17 Thread Pier Bover
I doubt there is a long term grand vision for JS. After all the focus is on small incremental changes. Personally I'd love to see optional static typings implement into the language much like we had in ES4 but I feel it's too big of a change to be considered by TC39. My hope now is on completely