From: Lennon Day-Reynolds Date: 2004-06-26T02:11:54+09:00 Subject: Re: Is it considered Harmful? [snip] > No code should "expect" data to be there that isn't. If a C extension wraps a > native C struct as a Ruby object with Make_Struct, then when it unwraps it, > and gets nothing or a NULL pointer, it shouldn't continue to try and use it. > That's sloppy coding. > > Sean O'Dell I agree with you about it being sloppy programming, but then again, part of the reason that I write code in Ruby (and Python, Java, C#, Perl, etc.) is so that I can be a little sloppy, without getting segfaults or buffer overruns. Programming in C seems to consist mostly of wrapping unsafe calls in error checks and handlers; I would hate to see Ruby become similarly burdened due to low-level hacks like #class= or #become entering the langauge core. Lennon