Re: AND and OR in if statement

2016-05-25 Thread Caitlin Potter
Devils advocate: if you were to measure usage of identifiers named “and” or “or”, on the web, how substantial do you think their use would be? And even if they were used a fair bit, that hasn’t really stopped the introduction of other contextual keywords in the past. If you really wanted to, yo

Re: AND and OR in if statement

2016-05-25 Thread Rick Waldron
This is a non-starter, as AND and OR are already valid identifiers. On Tue, May 24, 2016 at 9:15 PM Francis Clavette wrote: > Hi, > I’d like to be able to use AND for && and OR for || in conditional > statements in a future version of ECMAScript. It’s a feature I’ve always > been wanting since t

Re: Proposal: importing selected chucks of a module into an object

2016-05-25 Thread Isiah Meadows
Even with some larger libraries, you can do things like this: ```js // small modules import xmlParse from 'xml/parse'; import xmlCreate from 'xml/create'; import xmlSandwich from 'xml/sandwich'; import jsonParse from 'json/parse'; import jsonCreate from 'json/create'; import jsonBacon from 'json

Re: Object.getOwnPropertyDescriptors still at stage 0

2016-05-25 Thread Jordan Harband
Closing the loop on this: this proposal is now stage 4, and will be included in ES 2017. https://github.com/tc39/ecma262/pull/582 Polyfill: https://www.npmjs.com/package/object.getownpropertydescriptors On Wed, Jan 20, 2016 at 9:26 PM, Jordan Harband wrote: > If Rick is unavailable, and after I

Re: String.prototype.trimRight/trimLeft

2016-05-25 Thread Jordan Harband
* sorry, to clarify: This was discussing padding. trimLeft/trimRight / trimStart/trimEnd is still stage 2 On Wed, May 25, 2016 at 2:56 PM, Jordan Harband wrote: > Closing the loop on this: this feature is now stage 4, and will be > included in ES 2017. https://github.com/tc39/ecma262/pull/581 >

Re: String.prototype.trimRight/trimLeft

2016-05-25 Thread Jordan Harband
Closing the loop on this: this feature is now stage 4, and will be included in ES 2017. https://github.com/tc39/ecma262/pull/581 Polyfills: https://www.npmjs.com/package/string.prototype.padstart and https://www.npmjs.com/package/string.prototype.padend On Thu, Jul 30, 2015 at 10:33 AM, Behrang S

Re: String.prototype.padLeft / String.prototype.padRight

2016-05-25 Thread Jordan Harband
Closing the loop on this: this proposal is now stage 4 and will be included in ES 2017. https://github.com/tc39/ecma262/pull/581 On Mon, Jan 11, 2016 at 11:40 PM, Norbert Lindenberg < ecmascr...@lindenbergsoftware.com> wrote: > Thank you for renaming padLeft/padRight to padStart/padEnd. > > On th

Re: ECMA-402 DefaultLocale

2016-05-25 Thread Mike Samuel
Are lines 149-164 the part you want people to look at? On May 23, 2016 4:47 PM, "Geoffrey Garen" wrote: > Hi folks. > > ECMA-402 lists default locale as an unspecified "implementation dependent > behaviour”. > > In the absence of a specified default locale behavior, can we agree to a > de facto o

Re: AND and OR in if statement

2016-05-25 Thread Claude Pache
> Le 25 mai 2016 à 03:29, kdex a écrit : > > IMHO, the current operators `&&`, `&`, `||` ,`|` are the cleanest > implementation of `and` and `or` that I could think of. I don’t think so: It is not ideal that the longest forms, `&&` and `||`, are by far the most current ones. But this is histo

Re: AND and OR in if statement

2016-05-25 Thread Andy Earnshaw
It's not feasible anyway because AND and OR are already valid identifiers: a = foo() &&(bar) is equivalent to `a = foo() && bar`, but a = foo() AND(bar) is equivalent to a = foo(); AND(bar); On Wed, 25 May 2016 at 02:29 kdex wrote: > Could you explain how your second example is cleaner?

Re: Proposal: importing selected chucks of a module into an object

2016-05-25 Thread Norbert de Langen
Small modules are great, especially for creators. I’m onboard with small-modules being the default and recommended way of doing things. But.. I think history has shown that there is a use-case and a place in the world for larger composed modules. Take a look at lodash or jQuery for example. From