"R. Kent Dybvig" <dyb_at_cs.indiana.edu> writes:
> I'm responding as a user/implementor, not speaking for the editors.
>
>> This is mainly an attempt to stimulate discussion: Given that `when'
>> and `unless' offer little advantage over just using `if', and given
>> that their definitions are so trivial, it's unclear whether the
>> benefit of having a separate library with these in the standard is
>> worth the cost. As I don't use `when' and `unless', it's clear that
>> they're not worth the cost to me. I wonder what others think.
>
> The first "given" is debatable---
You mean that you consider the advantage more than "little"? (I
didn't say there was *no* advantage.)
> I believe that when and unless make the programmers intent
> immediately clear while one-armed if can be mistaken on first glance
> for a two-armed if.
That never happens to me on code that follows the indentation
guidelines we set examples for in the report. If indentation
guidelines aren't followed, all bets seem to be of even with `when'
and `unless'.
--
Cheers =8-} Mike
Friede, V?lkerverst?ndigung und ?berhaupt blabla
Received on Mon Mar 12 2007 - 14:43:38 UTC