1 Feb 2009 01:36
Re: Getting rid of "Void"?
Thomas Beale wrote: > Re: the Hoare paper, it only applies to generic computing structures, it > does not apply conveniently to business objects, which are also > expressed in the same computing languages. This is because business > objects have many 'optional' elements, and to make models of them in a > Void-less way would create a horrible and unusable type model. I agree > that the base libraries and other similar computing libraries should be > Void-safe, but large application systems will have many business > objects, for which there is no hope of being Void-safe. Realistic > systems will have to allow both kinds of libraries. > I think you're confusing the term "void-safe" with "void-less", Thomas. A system may be void-safe while still using "void" extensively. On the topic of "void-less-ness", I'm not convinced that base libraries use void that much less frequently than business applications. Generic computing structures use void frequently; think of linked lists, for example. Nonetheless, I don't think the original proposal was to make systems "void-less" anyway. I thought that the original proposal was to get rid of the "void" keyword. I saw no proposal to change the semantics of attachment and detachment. I would be happy with using the proposed new "attached" and "detach" syntax. My only question was why was this change being proposed? I'm still not clear about the rationale behind it. - Peter Gummer(Continue reading)
RSS Feed