Re: A WeakMap where values (not keys) are weak references?

2017-03-22 Thread Benoit Marchant
+ > On Mar 20, 2017, at 11:15 PM, /#!/JoePea wrote: > > Hey all, > > I'd like to have something like a WeakMap where the keys can be primitives > and the values are weakly-held Objects, so if there are no more references to > any of the Object values that the entry gets

Re: A WeakMap where values (not keys) are weak references?

2017-03-22 Thread Guy Bedford
I hope it wouldn't be too redundant to ask here again if there's been any movement on the WeakRefs proposal? WebAssembly at 1.0 does seem to bring new needs for this. On Tue, 21 Mar 2017 at 18:04, Mark S. Miller wrote: > What you are asking for is sometimes called a

Re: Strawman: partial application operator

2017-03-22 Thread Ben Aston
Exposition here: https://gist.github.com/benaston/795b644bbbc67098ec2bd388c7060826 My apologies. I neglected to include this link in my original email. Regards Ben Aston > On 22 Mar 2017, at 08:15, Ben Aston wrote: > > I am looking for a champion for a partial application

Strawman: partial application operator

2017-03-22 Thread Ben Aston
I am looking for a champion for a partial application operator strawman. A terse, native syntax for partial application that does not affect the target of a function will improve code consistency, clarity of intent and legibility. Assuming `arg1` is defined: Before: ```js import _ from