Login
You're viewing the techdon.dev public feed.
  • Oct 17, 2026, 9:19 PM

    adding structural pattern matching (match/case) to the language was a mistake imo. feels like a poor idea to introduce completely new meanings for existing syntax in just one weird corner of the language (like using | for "or patterns", "as" for capture, [] to match any kind of sequence, not just lists, etc). and the "class matching" is honestly baffling, e.g., "match Foo()" means "match anything that is an instance of class Foo" (and not "match against a new object of class Foo")

    💬 0🔄 0⭐ 0