logoalt Hacker News

saagarjhalast Sunday at 3:42 AM4 repliesview on HN

It’s not very good if you’re comparing it against Kotlin or Swift though.


Replies

realusernamelast Sunday at 7:05 AM

It's a matter of taste, even just the swift example on this website makes me raise eyebrows.

show 1 reply
wiseowiselast Sunday at 8:56 AM

It is great if you’re comparing it against Kotlin or Swift, unless you’re stuck in an era of 1.x Dart.

show 1 reply
satvikpendemlast Sunday at 4:10 AM

Eh, it's getting there, slowly at first but more rapidly now. It now got tearoffs, I explained in another comment but

> if you have an `enum Color { red, blue }` and a function takes `Color`, you can just do `f(.red)` not `f(Color.red)`

Dart is getting new features pretty fast, they really started focusing on the DX more after Dart 2 and now especially after Dart 3. Macros were supposed to ship but it was incompatible with the goals of fast compilation, so other sorts of smaller features will ship instead.

vips7Llast Sunday at 5:09 AM

Define good? Seems pretty subjective to me.