hankg,

When Dart overtook Kotlin as my favorite language I still missed certain features of Kotlin. One was the incredibly powerful switch statement, called "when", that Kotlin had and being able to use that for assignment. Now that Dart 3 is out I now have the equivalent of that again :). It may be missing a couple of edge case features like "in" comparisons but I have to experiment more to determine that. Hats off Dart and Flutter Team. (Screenshot from the "What's New in Dart and Flutter" presentation from

marilyn,
@marilyn@mathstodon.xyz avatar

@hankg Fantastic news!!

robdaemon,

@hankg ahhh pattern matching and switch / match being an expression is delightful

I also love when if is an expression

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • rosin
  • ngwrru68w68
  • thenastyranch
  • magazineikmin
  • hgfsjryuu7
  • DreamBathrooms
  • Youngstown
  • slotface
  • vwfavf
  • PowerRangers
  • everett
  • kavyap
  • Durango
  • khanakhh
  • Leos
  • tacticalgear
  • InstantRegret
  • cubers
  • mdbf
  • ethstaker
  • osvaldo12
  • GTA5RPClips
  • cisconetworking
  • tester
  • normalnudes
  • modclub
  • anitta
  • provamag3
  • All magazines