On Fri, 14 Mar 2003 05:59:33 +0900 "Jason M Jurkowski ;002;icsg6;" <jmj8237 / cs.rit.edu> wrote: > also, related, does anyone know if there is a good reason for the absense > of assertions in ruby? Assertions? You mean like in C? > i'm guessing it is a conscious decision. Probably because there are exceptions. ;-) You could always do: def assert(conditional) raise "Assertion failed" if not conditional end But that comes out with less information in the end than if you make a nice, specific exception for the given case and populate it with useful info. Assertions (in C anyway) are mostly a quick hack because there aren't exceptions, anyway. > jason -- Ryan Pavlik <rpav / users.sf.net> "Fanged death from the sea is quite routine." - 8BT