2 comments

[ 3.0 ms ] story [ 41.9 ms ] thread
The generics in Scala should be able to catch the cases you mentioned. Definitely worth checking out.