[nem-en] ArgumentException vs. InvalidOperationException

Vladimir Reshetnikov v.reshetnikov at gmail.com
Thu Feb 1 14:53:54 CET 2007


The following code throws ArgumentException:

def x = [] : list[int];
_ = x.Head

It is a quite strange, because method get_Head() accepts no arguments.
IMO, InvalidOperationException is more suitable here.



More information about the devel-en mailing list