Re: Array.prototype.contains

2014-03-07 Thread Mariusz Nowak
...and same for indexOf and lastIndexOf? ;-) On 7 mar 2014, at 13:33, Domenic Denicola dome...@domenicdenicola.com wrote: If that's the argument, then Array.prototype.contains should accept another Array, not an element to check. On Mar 7, 2014, at 5:49, medikoo

Re: Add intersections and unions to Set

2013-04-02 Thread Mariusz Nowak
. They are common set operations and they do seem missing from the Set draft spec. Peter ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss - Mariusz Nowak https://github.com/medikoo -- View this message

RE: Mutable Proto

2013-03-20 Thread Mariusz Nowak
://mail.mozilla.org/listinfo/es-discuss - Mariusz Nowak https://github.com/medikoo -- View this message in context: http://old.nabble.com/Mutable-Proto-tp35188550p35196276.html Sent from the Mozilla - ECMAScript 4 discussion mailing list archive at Nabble.com

Re: A case for removing the seal/freeze/isSealed/isFrozen traps

2013-02-15 Thread Mariusz Nowak
for the link. This is yet another inline cache specialization for expandos on nodelists. /be ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss - Mariusz Nowak https://github.com/medikoo -- View

Re: Changing [[Prototype]]

2012-12-28 Thread Mariusz Nowak
after legalizing __proto__ (I already had few valid use cases for that in important projects) but maybe we should deprecate `__proto__` (being a property is really problematic) and standardize `Object.setPrototypeOf`? It would make things much cleaner and safe. Mariusz Nowak - Mariusz Nowak

Re: Promises

2012-11-08 Thread Mariusz Nowak
. `then` should be used *only* if you have a reason to extend the chain, and pass result elsewhere. - Mariusz Nowak https://github.com/medikoo -- View this message in context: http://old.nabble.com/Promises-tp34648686p34655893.html Sent from the Mozilla - ECMAScript 4 discussion mailing list archive

Re: Promises

2012-11-08 Thread Mariusz Nowak
:) - Mariusz Nowak https://github.com/medikoo -- View this message in context: http://old.nabble.com/Promises-tp34648686p34655959.html Sent from the Mozilla - ECMAScript 4 discussion mailing list archive at Nabble.com. ___ es-discuss mailing list es

Re: Function length

2012-06-11 Thread Mariusz Nowak
@mozilla.org https://mail.mozilla.org/listinfo/es-discuss ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss - Mariusz Nowak https://github.com/medikoo -- View this message in context: http

Sugar for *.prototype and for calling methods as functions

2012-02-21 Thread Mariusz Nowak
will make methods easily accessible for some functional constructs, and I think might be revolutionary for those who favor such functional way of programming. Let me know what do you think about that. -- Mariusz Nowak https://github.com/medikoo http://twitter.com/medikoo - Mariusz Nowak https

Re: Harmony modules feedback

2012-01-17 Thread Mariusz Nowak
currently the closest you can get to what will be introduced in future with Harmony, so I plan to stick to that. [1] https://github.com/medikoo/modules-webmake -- Mariusz Nowak twitter: http://twitter.com/medikoo github: https://github.com/medikoo - Mariusz Nowak https://github.com/medikoo

Re: Harmony modules feedback

2012-01-17 Thread Mariusz Nowak
talk about synchronous loading then Node.js style modules with help of modules-webmake[1] is simpler and more powerful. I feel it's obvious. [1] https://github.com/medikoo/modules-webmake -- Mariusz Nowak twitter: http://twitter.com/medikoo github: https://github.com/medikoo - Mariusz Nowak

Re: Harmony modules feedback

2012-01-16 Thread Mariusz Nowak
in that way it originated from CommonJS). Currently I can't imagine any need for packages implementation in browsers. It's strictly just server-side and I assume it's fine to not have it standardized -- Mariusz Nowak twitter: http://twitter.com/medikoo github: https://github.com/medikoo

Re: Harmony modules feedback

2012-01-16 Thread Mariusz Nowak
Mark S. Miller-2 wrote: On Mon, Jan 16, 2012 at 7:51 AM, Mariusz Nowak medikoo+mozilla@medikoo.com wrote: rauschma wrote: For incrementally migrating old code bases, it would make a lot of sense to allow ES.next modules to import AMDs and vice versa. -1 I'm not sure if I

Re: Suggestion: Array.prototype.repeat

2012-01-03 Thread Mariusz Nowak
Rick Waldron wrote: On Mon, Jan 2, 2012 at 3:56 PM, Mariusz Nowak medikoo+mozilla@medikoo.com wrote: I like it, it indeed looks very logical, however it's a bit controversial that we need to create temporary array object to get one that we want. Is the controversy editorial

Re: Suggestion: Array.prototype.repeat

2012-01-03 Thread Mariusz Nowak
Rick Waldron wrote: On Tue, Jan 3, 2012 at 3:34 AM, Mariusz Nowak medikoo+mozilla@medikoo.com wrote: Rick Waldron wrote: On Mon, Jan 2, 2012 at 3:56 PM, Mariusz Nowak medikoo+mozilla@medikoo.com wrote: I like it, it indeed looks very logical, however it's a bit

Re: Suggestion: Array.prototype.repeat

2012-01-03 Thread Mariusz Nowak
Rick Waldron wrote: On Tue, Jan 3, 2012 at 9:19 AM, Mariusz Nowak medikoo+mozilla@medikoo.com wrote: Rick Waldron wrote: On Tue, Jan 3, 2012 at 3:34 AM, Mariusz Nowak medikoo+mozilla@medikoo.com wrote: Rick Waldron wrote: On Mon, Jan 2, 2012 at 3:56 PM

Re: Suggestion: Array.prototype.repeat

2012-01-02 Thread Mariusz Nowak
= arr.length) length) { arr = arr.concat(arr.slice(0, length - l)); } return arr; }; ( https://github.com/medikoo/es5-ext/blob/master/lib/Array/generate.js ) -- Mariusz Nowak https://github.com/medikoo/ rauschma wrote: Array.prototype.repeat seems like a logical dual

Re: es-discuss Digest, Vol 52, Issue 117

2011-06-21 Thread Mariusz Nowak
is still c2. = this.three === C.three SUMMARY: I agree with your findings. From my perspective, this proposal looks perfect. I wouldn't look further :) - Mariusz Nowak https://github.com/medikoo -- View this message in context: http://old.nabble.com/Re%3A-es-discuss-Digest%2C-Vol-52%2C

Re: Making super work outside a literal?

2011-06-20 Thread Mariusz Nowak
); c2.two(); // C.three Thanks! - Mariusz Nowak https://github.com/medikoo -- View this message in context: http://old.nabble.com/Making-%22super%22-work-outside-a-literal--tp31880450p31884964.html Sent from the Mozilla - ECMAScript 4 discussion mailing list archive at Nabble.com

Re: block lambda proposal in light of compiling to JavaScript

2011-06-20 Thread Mariusz Nowak
. - Mariusz Nowak https://github.com/medikoo -- View this message in context: http://old.nabble.com/block-lambda-proposal-in-light-of-compiling-to-JavaScript-tp31876202p31885102.html Sent from the Mozilla - ECMAScript 4 discussion mailing list archive at Nabble.com