elan-language / Documentation

0 stars 0 forks source link

Can we sustain 'no overloads?' #164

Closed richardpawson closed 4 months ago

richardpawson commented 7 months ago

For FP does this mean that lots of methods must involve a switch based on Type? How well will this work in Elan?

  1. We definitely need pattern matching

  2. Can we do this for asString() ? In which case can we say that a class does not have to have an asString. Note that it might still be useful to force the user to think about asString, by including the method (modifiable) in the Frame. but perhaps not for immutable class (likely to be used most in FP).