Re: #;



On Dec 30, 7:46 pm, Kent M Pitman <pit...@xxxxxxxxxxx> wrote:
verec <ve...@xxxxxxx> writes:
I have seen many examples using #+nil for this
purpose, but this precisely doesn't work for
incomplete expressions whereas:

Btw, NIL was the New Implementation of Lisp (a lisp implementation for
the VAX some years ago), and #+NIL actually did have an implementation
it was defined in.  I don't recommend it for conditionals.  #+(or) is
safer, though not terribly intelligible to everyone.  #+ignore is something
I've seen enough people use that it's unlikely anyone would make :ignore
feature and expect it to work.

You know, none of this actually matters, because unconditionally
commented-out code should never be released (or even checked into the
code repository).

So all that matters is whether the trick works in your sandbox.

If #+NIL does the job for you from the time you add it, to the time
you remove it before passing the code onto anyone else, then that's
fine.

And we don't need a comment-out shorthand in Lisp, because we don't
need features which specifically don't belong in production code.

Therefore, of course, Scheme needs such a feature. :)
.



Relevant Pages

  • Re: Why if 0 succeeds in Ruby
    ... this is touted as a feature. ... False and nil are two quite different concepts and should not be ... problem with nil being false in Lisp and Ruby and true in Scheme. ...
    (comp.lang.ruby)
  • Re: Efficiency of multiple values
    ... efficiently implementing code in ANSI Common Lisp; ... > feature, and to speculate on how much more efficient compiled Lisp would ... ; Compiling Top-Level Form: ...
    (comp.lang.lisp)
  • Re: Implementing custom containers in Lisp
    ... CMU Common Lisp 18b, running on shell.xxx.com ... distinguish between immediate values and handles to heap objects, ... *all* integers are in fact BIGNUMs or equivalent, immutable objects on ... NIL ...
    (comp.lang.lisp)
  • Re: Advice for a new lisper
    ... This is my first experience with lisp, ... (defun simplify-card (card) ... unless return nil) ...
    (comp.lang.lisp)
  • Re: can someone explain this quote by Tim Daly?
    ... What's so special about nil and in the context of being a Lisp? ... Language design based on ... nothing contrived about saying that language designers do, in fact, ...
    (comp.lang.lisp)