Arun Isaac <arunis...@systemreboot.net> writes: > Mark H Weaver <m...@netris.org> writes: > >> After we switch to using 'invoke' everywhere, or more precisely, after >> we arrange to never return #false from any phase or snippet, then >> there should be one more step before removing the vestigial #true >> returns: we should change the code that calls phases or snippets to >> ignore the value(s) returned by those procedures. When that is done, >> then the #t's will truly be vestigial. Does that make sense? > > I think we should start removing the vestigial #true right away. Why > wait until we can make the code that calls phases ignore the values > returned by those phases? As it stands, that code errors out only when a > phase returns #false, not when it returns any other value (even > unspecified). WDYT? > > The #true is already vestigial.
They are not vestigial if we care about code correctness. Phases and snippets are currently specified to return a boolean, and furthermore we must return the _appropriate_ boolean to indicate success for failure. I consider it unacceptable to not bother returning anything, allowing a completely unspecified value to be returned, and think that this is okay because it happens to work, for now, because of an internal implementation detail of Guile. This (unfortunately widespread) practice of sloppiness in software engineering is how we ended up in the mess we are in today, where our software is drowning in bugs and our systems are hopelessly insecure. Let the annoyance that you and others feel about these unsightly #t's supply the motivation to fix this issue properly. Mark