> I guess this is functionally similar to "assert ... endassert" but maybe
> more Pop-ish.
Its only more pop-ish in the sense that its like returnif, quitif and
friends. But I recall feeling these weren't at all pop-ish when they
were introduced! :-)
One drawback of your alternative is that it doesn't look `optional' the
way jonathan's was (ok his didn't LOOK optional either, but at least it
was brand new syntax). I'd be keen for that feature to be clearer
somehow. In the past I've thought of extending the #_ convention to
indicate bits that somehow aren't really part of the code proper (eg a
switchable #_FAST instead of lib slowprocs[1]). Come to think of it,
John's being doing this with his #_TERMIN_IF. So how about #_MISHAP_IF ?
Roger
[1] this is now SO DANGEROUS as to be useless: we happened to fall over
the fact that it now fiddles with ANY identifier prefixed with fast_,
regardless of whether its signature is the same as the slow version
(which it can't tell of course)
|