[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: turning line mode on/off with defun not working
From: |
Emanuel Berg |
Subject: |
Re: turning line mode on/off with defun not working |
Date: |
Sat, 07 Dec 2013 14:28:24 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) |
PJ Weisberg <pjweisberg@gmail.com> writes:
>> Both works but I like the whitespace there. Because
>> that is actually an empty list (or nil), and not a
>> place where you put parameters (like it is in C) -
>> or, it is both in Lisp. Try it yourself with nil
>> instead of the empty parenthesis pair. (Then,
>> obviously you need the whitespace.)
>
> You *can* do that, but that doesn't mean you should.
> Sure, () and nil are always interchangeable, but only
> one of them *looks* like an empty list of parameters.
> It always takes my brain an extra moment to process
> when I see nil somewhere where I'm expecting to see a
> list.
I agree, I use nil as "unset" or "none" or "false" and
() as the empty list. My point was that () *is* an
empty list, it is not just two chars that denote a
place where you should put params, and that place
happens to be empty.
--
Emanuel Berg, programmer-for-rent. CV, projects, etc at uXu
underground experts united: http://user.it.uu.se/~embe8573
- RE: turning line mode on/off with defun not working, (continued)
- Re: turning line mode on/off with defun not working, Emanuel Berg, 2013/12/06
- Re: turning line mode on/off with defun not working, Wes James, 2013/12/06
- Message not available
- Re: turning line mode on/off with defun not working, Emanuel Berg, 2013/12/06
- Re: turning line mode on/off with defun not working, Emanuel Berg, 2013/12/06
- Re: turning line mode on/off with defun not working, Emanuel Berg, 2013/12/06
- Re: turning line mode on/off with defun not working, Wes James, 2013/12/06
- Re: turning line mode on/off with defun not working, Emanuel Berg, 2013/12/06
- Re: turning line mode on/off with defun not working, PJ Weisberg, 2013/12/07
- Message not available
- Re: turning line mode on/off with defun not working,
Emanuel Berg <=