6 ms·
Not sure about Flutter being held back by Dart. From my experience the language works really well for Flutter. For example Dart has first class support for asy
by cbolton 7y ago
Not sure about Flutter being held back by Dart. From my experience the language works really well for Flutter.
For example Dart has first class support for asynchronous streams, very useful for a reactive framework. Flows in Kotlin are still experimental I think?
The Dart version of async/await works really well, just what you need in Flutter code and simpler than suspended functions in Kotlin.
The cascade operator is since syntactic sugar and, again, simpler and lighter than Kotlin's "apply".
Then there are Flutter's killer features, mainly hot reload and soon the Web support. Is Kotlin.js in the same league as Dart? Honest question! Dart's
JavaScript support is very mature, with 2 backends: one for development and one for production. And what's the hot-reload story on Kotlin's side? I could not find an answer on Google, but I did find[1] these words from the "IntelliJ IDEA product manager @ JetBrains, co-author of Kotlin in Action":
"Flutter relies heavily on features that are only provided by the Dart VM. It’s not possible to add Kotlin support to Flutter without losing a lot of the things making Flutter attractive."
So from a marketing standpoint maybe Dart is a liability, but technically I think it's a strength. I hope marketing won't have the last word!
[1] https://twitter.com/intelliyole/status/1105493258954780672 https://twitter.com/intelliyole/status/1105493258954780672
- hota_mazi 7y ago> I hope marketing won't have the last word It's interesting you think JVM support is just marketing. For millions of developers around the globe, JVM support is a feature, and one they really can't do without. Dart is a liability to them because unproven, and its future is equally uncertain given Google's track record.
- cbolton 7y ago> It's interesting you think JVM support is just marketing I never said or implied that. I think maybe Dart is a liability from a marketing point of view because I saw many negative comments on HN which had more more to do with Dart's popularity than its technical merits. I was not talking about the JVM.
- munificent 7y agoEvery proven technology was unproven once. I remember when people said Java was too risky, GC was too slow, and it would never take off.
- zaphirplane 7y agoWhich side are you arguing for ;) couldn’t resist
- filleduchaos 7y agoTo be honest I feel like most people who knock on Dart have never actually written it.