Re: FW: Proposal: safeEval

2018-06-21 Thread Mike Samuel
On Wed, Jun 20, 2018 at 9:52 PM doodad-js Admin wrote: > Thanks > > > > *How can we discuss your idea separately from the library?* > > > > I’m more thinking at the runtime level than at the “user land”. To be > honest, I don’t care of “safeEval” on “user land”. > You seem to be asking for

Re: Array#flat is coming to ES; would you like like some sugar with that?

2018-06-21 Thread Isiah Meadows
Not stating my opinion of the idea here, but I find it unlikely that it'll get accepted, for similar reasons to why the old proposed comprehension syntax got omitted in favor of just using `map` and `filter` (arrow functions are concise enough). - Isiah Meadows m...@isiahmeadows.com

Array#flat is coming to ES; would you like like some sugar with that?

2018-06-21 Thread Michael Luder-Rosefield
Apologies 'if' this is a terrible idea, but since I have just encountered a situation where this sugar would actually be useful I'm absolutely going to suggest it. Extend the ... syntax to allow for flattening deconstructed arrays. _Literally_ extend it: array === ...(array.flat()) // i.e.