3 ms·
How so? You ignore that the expression problem is about using static types. See the original problem statement. In languages like Smalltalk or Lisp, the Expres
by lispm 12y ago
How so? You ignore that the expression problem is about using static types. See the original problem statement.
In languages like Smalltalk or Lisp, the Expression Problem has easy solutions - but they are not statically typed.
- fnordsensei 12y agoThe point is to not violate the type safety of the language used. There are plenty of dynamic languages that don't offer a solution to the expression problem. With that said, you can add gradual typing to Clojure with Core.Typed and still solve the expression problem using multimethods without violating type safety.
- deleted 12y ago[deleted]