about JavaScript: its flexibility. I'd say that after ES7
or ES8, there won't be a ton of reason for syntactic additions.
From: Jussi Kalliokoski
To: Bucaran
Cc: "es-discuss@mozilla.org >> es-discuss"
Date: Tue, 28 Jul 2015 09:43:58 +0300
Subject: Re: self functions
For classe
mise handlers, so instead of:
>
> new Promise(function (resolve, reject) { }.bind(this))
>
> One could write:
>
> new Promise(function self (resolve, reject) { })
>
> It would be even sweeter if you didn’t ne
sed in promise handlers, so instead of:
>
> new Promise(function (resolve, reject) { }.bind(this))
>
> One could write:
>
> new Promise(function self (resolve, reject) { })
>
> It would be even sweeter if you didn’t ne
ite:
new Promise(function self (resolve, reject) { })
It would be even sweeter if you didn’t need to specify the keyword function
when writing `self` functions:
new Promise(self (resolve, reject) { })
___
es-discuss mailing list
4 matches
Mail list logo