Did I break a taboo by doing this?

  • @[email protected]OP
    link
    fedilink
    21 year ago

    As an aside, you probably don’t need a static union type for your min and max functions. I assume you could use comparable.

    comparible only allows ==

    • @theherk
      link
      21 year ago

      Oh right! What am I saying? contraints.Ordered maybe.

      • @[email protected]OP
        link
        fedilink
        11 year ago

        I just looked at the standard docs and I didn’t realize there was a built-in min and max function. Y’all should really read the standard lib docs… it’s fascinating in there.