[Top][All Lists]

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

Re: (:named nil) in cl-defstruct (was: new `obarray` type)

From: Noam Postavsky
Subject: Re: (:named nil) in cl-defstruct (was: new `obarray` type)
Date: Wed, 15 Mar 2017 15:39:31 -0400

On Wed, Mar 15, 2017 at 3:24 PM, Stefan Monnier
<address@hidden> wrote:
> Common-Lisp doesn't allow (:named ...), but cl-macs.el treats it
> as :named hence the confusion.  I think we should change this to either
> disallow (:named ...) or to treat (:named nil) as a way to say "*not*
> named".  The patch below does latter.  Any objection?

> -              (setq named t))
> +              (setq named (if args (car args) t)))

Hmm, if I read the code below correctly, this would allow (:named
something-else), but the struct wouldn't be named 'something-else'.
Which still seems potentially confusing for users.

reply via email to

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