4 ms·
I've been doing some work in Dart/Flutter recently and I'm finding it to be a nice mix of Java/JavaScript/TypeScript/Golang. It has generics which work pretty w
by latchkey 7y ago
I've been doing some work in Dart/Flutter recently and I'm finding it to be a nice mix of Java/JavaScript/TypeScript/Golang. It has generics which work pretty well, although I've already found a very small bug in it [1].
Initial reading of this document makes me feel it is really over complicated compared with Dart.
[1] https://github.com/dart-lang/sdk/issues/37626 https://github.com/dart-lang/sdk/issues/37626
- proyb 7y agoWhich part is overcomplicated compared with Dart?
- latchkey 7y agoOne thing I really like about Dart is the lack of interface objects, they are implicit. The `contract` proposal feels like having to write interfaces. The inference in Dart is really nice to work with as the compiler gets it right most of the time. The other thing is the documentation is really easy to grok and come up to speed on: https://dart.dev/guides/language/language-tour#generics https://dart.dev/guides/language/language-tour#generics https://dart.dev/guides/language/sound-dart https://dart.dev/guides/language/sound-dart Edit: Additionally, mocking (with Mockito-Dart) becomes trivial, which is great for unit testing: class Thing { String boo; } class MockedThing extends Mock implements Thing {} when(thing.boo).thenReturn('ack');