Promises, async functions, and requestAnimationFrame, together.

2016-04-22 Thread /#!/JoePea
Is it possible? I thought maybe something like this: ```js function animationFrame() { let resolve = null const promise = new Promise(r => resolve = r) window.requestAnimationFrame(resolve) return promise } async function game() { // the game loop while (true) {

Re: Import wildcards on the right side of the statement

2016-04-22 Thread Francisco Méndez Vilas
Hi Caridy, Thank you very much for your feedback. I will definitely go for the loader option. Cheers, Francisco El jue., 21 abr. 2016 a las 18:22, Caridy Patiño () escribió: > Hey Francisco > > There is nothing in the spec that prevent you from doing `import * from >

Re: Pseudo headless arrows

2016-04-22 Thread Joris van der Wel
Yes, that is still how mocha does things. Mocha is not the best example though, because it is not compatible with arrow functions. Mocha uses `this` to expose extra functions to your test case. (I always use a wrapper around mocha to avoid these issues) Subject: Re: Pseudo headless arrows >

Re: Pseudo headless arrows

2016-04-22 Thread /#!/JoePea
I like that Headless Arrow Function proposal (http://bterlson.github.io/headless-arrows). ```js doSomethingAsync(=> console.log('done')) ``` On Thu, Apr 21, 2016 at 5:02 PM, Michael Theriot wrote: > Three equals used outside of strict equality might take some