The thing I liked about thin arrows (other than the conciseness) was the
lack of a prototype object, thus automatically throwing on construct and
having similar behaviour to native functions. Concise methods and fat
arrows already have this behaviour, but if you want to add such a method to
an
At one point in time we allowed concise bodies in classes and object
literals but the commas in object literals made the syntax problematic.
On Sun, Jun 21, 2015, 00:58 Isiah Meadows impinb...@gmail.com wrote:
Good point. I just wish there was some shorter form for methods, but I
guess that's
On Jun 21, 2015, at 7:42 AM, Erik Arvidsson wrote:
At one point in time we allowed concise bodies in classes and object literals
but the commas in object literals made the syntax problematic.
We also talked about the possibility of allow ; as an alternate separator in
object literals.
There already exists a syntax for lexically bound functions, but couldn't
there be an unbound counterpart? I am aware I brought this up before, but
I'm still missing it with smaller methods that still need `this`. It's easy
to macro, but it feels weird to have a lexically bound lambda and not an
ES'15 provides dedicated method syntax. What are your use cases that are
not covered by methods?
On Sat, Jun 20, 2015 at 12:13 PM Isiah Meadows impinb...@gmail.com wrote:
There already exists a syntax for lexically bound functions, but couldn't
there be an unbound counterpart? I am aware I
Dňa 20. júna 2015 19:31:18 CEST používateľ Erik Arvidsson
erik.arvids...@gmail.com napísal:
ES'15 provides dedicated method syntax. What are your use cases that
are
not covered by methods?
Or, ultimately, by function keyword. If I understand correctly, what you want
is arrowlike equivalent
6 matches
Mail list logo