4 ms·
It does provide the feature of optional typing, as I just said. I spent my formative years developing in a language with optional typing and really grew to like
by metricodus 10y ago
It does provide the feature of optional typing, as I just said. I spent my formative years developing in a language with optional typing and really grew to like it. I think it's a great concept that has missed the mainstream somehow.
Besides from that the syntax is completely different, being inherited from C.
- throwaway7645 10y agoIs optional typing the same thing as gradual typing in Perl6 as in you can specify types, but don't have to?
- metricodus 10y agoI don't know much about Perl, but this describes Dart's approach to optional typing: https://www.dartlang.org/articles/language/optional-types https://www.dartlang.org/articles/language/optional-types (But meh, it's not really innovative/new as this page says, just not popular.) Basically, it's a language that allows you to choose the level of type checking. You can be super strict all the time, or only when it matters. Or not at all. Like all other modern languages it naturally has the basic collection data types built in so that you don't have to reinvent them.
- willtim 10y agoDecent static typing with inference has also missed the mainstream
- skybrian 10y agoDart is moving away from optional typing towards static typing with inference. (It's useful for ahead-of-time compilation.) Take a look at strong mode. But since you can leave out the types in simple situations, it often looks the same.