It would be nice to have a templatized behavior for nodes. For example, “if-else” should take 2 inputs of type “T” and the output is of the same type. Then it works for numbers and strings. Then, “select” could be built from that which would work for any type.
That’s a nice idea. We’re thinking about it for a long time (codename “generic types”). The same mechanism eventually could be used to implement Haskell-alike polymorphism.
Generic types are not trivial to implement, but we’ll try to do it somewhere in the observable future.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.