[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: if vs. when vs. and: style question
From: |
Emanuel Berg |
Subject: |
Re: if vs. when vs. and: style question |
Date: |
Wed, 25 Mar 2015 01:34:16 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Thien-Thi Nguyen <ttn@gnu.org> writes:
> Personally, i loathe 1-armed-‘if’ expressions; they
> are a blight on the smoothness, equivalent to "umm",
> "err" in a formal talk.
Ha! Yes, they look so lost and sidetracked and out of
focus. But that shouldn't stop anyone from using them.
Just like the "umm"s and "err"s in talk, which convey
information or give the talker time to formulate the
next sentence without being interrupted, the 1-armed
bandits serve a purpose.
Also, sometimes nil is what you want:
(if nil 1)
(if nil 1 nil)
> When i inherit code (e.g., EDB), i early-on put
> effort into killing those abominations. (This has
> the predictable side effect of introducing bugs, but
> is anyway useful for familiarizing myself w/ the
> code
Ha again! I just wrote I wouldn't do it, but this is
a great point. "May I indent your code?" is perhaps an
insult but it can be rephrased as "May I muck around
with your code until I understand it?" - at what time,
it will be re-indented as the inheritor likes it as
a positive side-effect. Learning by doing is doing by
learning! If anything can start anew, then everything
must continue!
--
underground experts united
- Re: if vs. when vs. and: style question, (continued)
- Re: if vs. when vs. and: style question, Rusi, 2015/03/27
- Re: if vs. when vs. and: style question, Rusi, 2015/03/24
- Re: if vs. when vs. and: style question, Emanuel Berg, 2015/03/26
- Re: if vs. when vs. and: style question, Emanuel Berg, 2015/03/27
- Re: if vs. when vs. and: style question, Pascal J. Bourguignon, 2015/03/27
- Re: if vs. when vs. and: style question, Rusi, 2015/03/27
- Re: if vs. when vs. and: style question, Pascal J. Bourguignon, 2015/03/28
- Re: if vs. when vs. and: style question, Pascal J. Bourguignon, 2015/03/24
- Re: if vs. when vs. and: style question, Emanuel Berg, 2015/03/24
Re: if vs. when vs. and: style question, Thien-Thi Nguyen, 2015/03/24
Message not available
- Re: if vs. when vs. and: style question,
Emanuel Berg <=
Re: if vs. when vs. and: style question, Emanuel Berg, 2015/03/23