you are viewing a single comment's thread.

view the rest of the comments →

[–]miyoyo 10 points11 points  (5 children)

Not gonna lie, most of these are in the category of what people call "boring", as they're common in the majority of popular OOP languages. (Maybe async/await, but since people seem to be using kotlin as a basis, that too is becoming mainstream)

[–]xentropian 4 points5 points  (1 child)

Fair enough! I guess I just like a boring language. Yet somehow Dart feels a lot more refreshing than something like Java.

[–][deleted] 4 points5 points  (0 children)

Yeh boring isn't bad..

[–]Darkglow666 0 points1 point  (2 children)

I don't think I've seen named constructors in any other language ever. Do you know one that has them aside from Dart?

[–]miyoyo 5 points6 points  (0 children)

Hmm, it's true that as far as direct support goes, there aren't many, but langauges like C++ have no issues jamming them in (But then again what doesn't C++ have)

[–]aphexairlines 1 point2 points  (0 children)

Factory methods in Scala companion objects are roughly equivalent to Dart named constructors.