emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: defvar vs setqif..


From: Miles Bader
Subject: Re: defvar vs setqif..
Date: 20 May 2002 09:03:06 +0900

"D. Goel" <address@hidden> writes:
> If there was a special-form that did exactly what defvar does, hopefully
> people would stop using defvar when they didn't mean to...

The way they're using defvar is correct.

It would be much better to fix the definition-finding functions to
prefer defvars that initialize the variable over those that don't, since
the `real' definition almost always initializes the value (and should).

> So i was wondering is a special-form like 'setqif' could be provided
> whose only difference from 'defvar' is in a name...

That name would be wrong, because the usage of defvar you're
complaining about doesn't set the variable at all.

In any case, we should just make defvar work correctly.

-Miles
-- 
`...the Soviet Union was sliding in to an economic collapse so comprehensive
 that in the end its factories produced not goods but bads: finished products
 less valuable than the raw materials they were made from.'  [The Economist]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]