3 comments

  • jlongo78 10 hours ago ago

    Gala looks interesting. The sealed types approach in Go reminds me of how Rust handles enums for exhaustive matching. One practical tip when using this with AI coding agents: have them generate the type hierarchies first, then pattern match logic separately. Agents tend to hallucinate less when the type contracts are explicit upfront. The monad abstractions here could also make agent-generated error handling chains much more predictable and testable.

    • mmcodes 10 hours ago ago

      This is exactly right. I am also very impressed how AI can pick up an unknown language and start coding in it.

      • jlongo78 3 hours ago ago

        The language pickup thing is genuinely fascinating. I think it works so well because AI models reason about patterns and constraints rather than memorizing syntax. A well-designed type system with clear semantics almost teaches itself. Gala's sealed types are explicit enough that an agent can infer the exhaustiveness requirements pretty naturally, even without prior training on it specifically.