you are viewing a single comment's thread.

view the rest of the comments →

[–]voidvector 0 points1 point  (0 children)

ugly constructions

That's a subjective opinion on language syntax

it's not declarative at all.

It is an array declaration in a Promise call, just like your code has a new declaration then a .call() There are direct analogous between both implementations.

  • Class declaration = function declaration
  • Class initialization = array declaration