
8 Jan
2016
8 Jan
'16
6:06 a.m.
Well, there is -fwarn-incomplete-patterns, which should be included in -Wall, which does exactly this.
cheers Jonas. will try this. another thing: class lets reuse the same method name for several types. with pattern matching, different types require different function names. it is possible to place methods in different modules and call them qualified, but class solution seems cleaner. basically, classes are very convenient for standardization and extending code. a bit like Java interfaces :-P