On 1213, David A. Black wrote: > > Why ruby handle booleans so liberally? > > I mean why can I pass anything to an if, and for constructs requiring > > bool? I guess many programmers do it the wrong way saying "if 0" and > > expecting to be true... > > It is true: I meant false, of course... > > And on the other hand I must use to_i and others to convert from one > > type to another. > You mean you want to have to put "to_bool" everywhere? :-) Not everywhere, just where needed... Where should you put these? (examples) Gergo -- +-[ Kontra, Gergely<kgergely / mcl.hu> PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+