from Hacker News

Dart 3.3

by markdog12 on 2/15/24, 8:19 PM with 16 comments

  • by irq-1 on 2/15/24, 9:49 PM

    https://pub.dev/packages/web

    > This package exposes browser APIs. It's generated from the Web IDL definitions and uses recent Dart language features for zero-overhead bindings.

    Dart doesn't get the respect it deserves.

  • by seertaak on 2/16/24, 8:17 AM

    It seems every language starts with free functions and classes (even mojo). They then realize that isn't so great: third parties are at a syntactic disadvantage (no dot fn's). And then, the language designers "fix" the problem with extension methods. Now you have three different function kinds, and we haven't even broached async.

    Why not have only structs, free functions, and UFCS?

  • by Alifatisk on 2/15/24, 10:55 PM

    The extension type was a bit alien to me, so it’s a type with functions in it?

    Also, any plans on union types? There is like no way to tell Dart when something can either by type A or type B.

    I believe pattern matching is the only way at the moment.

  • by chipweinberger on 2/15/24, 10:31 PM

    The improved Web interop looks really nice.

    Dart is evolving so quickly!

  • by dark__paladin on 2/16/24, 2:31 PM

    Dart is actually fairly nice to use. It's a shame it will probably end up in the Google graveyard in a few years.