Re: Cancel Promise pattern (no cancellable promises)

2017-01-07 Thread Igor Baklan
In general I thing it would be good to have something like [``java``(``Thread.interrupt()``)]( https://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html#interrupt()), assuming that "Thread" here can be "async stacktrace of promises", and interrupt notification should be just forwarded to top

Re: Proposal: Improve syntax for inline anonymous class instantiations

2017-01-07 Thread Alexander Jones
Hi Igor With `super()` and closure binding of the anonymous class `constructor` (as with all class methods) you can basically solve your problem of constructor arguments appearing in the wrong place: ``` this.add( new class extends ArrayView { constructor() { super("items",

Re: Proposal: Improve syntax for inline anonymous class instantiations

2017-01-07 Thread T.J. Crowder
Two aspects to this: Motivations and syntax. ## On motivations: Addressing new syntax, the first question has to be: Is this use case sufficiently common and painful that it needs new syntax? The answer may be yes, but we need to ask the question. Trying to solve it without new syntax with a