HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by tnzm | Hacker News Reader
Full thread
tnzm
·
Class static blocks are weird. Give me async constructors already!
View on HN
jakelazaroff
·
Can you not just define an async static function that returns an instance?
tnzm
·
I can, but that's ugly - it violates standard semantics and generally introduces a new thing to know about.
bricss
·
You can simply return promise from constructor \m/
k4rli
·
Why would you need that?
tnzm
·
Why not?
Reply on news.ycombinator.com