ra’s avatarra’s Twitter Archive—№ 33,780

  1. …in reply to @dmiller2718
    @dmiller2718 we'd need overloading on argument types to allow e.g. + to operate on vectors, matrices in addition to numbers
    1. …in reply to @ra
      @dmiller2718 otherwise you're stuck with vec2/+ like in the snippet above or v2+ like we use in arcadia, which is clumsy
      1. …in reply to @ra
        @dmiller2718 then to *really* do it, you'd want that to be an open system, so i could introduce a new type and define + for it without modifying core
        1. …in reply to @ra
          @dmiller2718 and at that point we're talking about making every function an open generic function and i think we've left the realm of clojure