www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2021/09/26/10:13:12

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Sun, 26 Sep 2021 16:12:13 +0200 (CEST)
From: Roland Lutz <rlutz AT hedmen DOT org>
To: "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Subject: Re: [geda-user] empty attributes
In-Reply-To: <20210925194712.152EA8587FD0@turkos.aspodata.se>
Message-ID: <alpine.DEB.2.21.2109261600060.1280@nimbus>
References: <20210925133011 DOT D0B918587B70 AT turkos DOT aspodata DOT se> <alpine DOT DEB DOT 2 DOT 21 DOT 2109251919580 DOT 1189 AT nimbus> <20210925194712 DOT 152EA8587FD0 AT turkos DOT aspodata DOT se>
User-Agent: Alpine 2.21 (DEB 202 2017-01-01)
MIME-Version: 1.0
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sat, 25 Sep 2021, karl AT aspodata DOT se [via geda-user AT delorie DOT com] wrote:
> Is there any rationale to not to allow empty attributes
> (except that it isn't implemented) ?

I don't know (this was before my time at the project).

I'm not terribly opposed to supporting empty (as opposed to, unset) 
attributes, but having gEDA treat "refdes=" as an empty attribute would 
introduce a semantic change as text objects in existing schematics may 
then suddenly be interpreted as attributes.

I've long been in favor of making text and attributes different kinds of 
objects, which would remove this ambiguity.  But that (like many other 
potential improvements) would mean an incompatible file format change, 
which I have so far tried to avoid.

Allowing component objects to have an empty refdes would be another, 
different change.  What would it mean for a component to have an empty 
refdes?  If the empty string was treated like any other value, all such 
components would be merged into one package.  Is this useful behavior?

I'm playing with the thought of allowing components to not have any 
refdes= attribute at all in situations where this makes semantic sense, 
e.g., with cascade simulation.  This is a somewhat different concept, 
though, and may not play well together with hierarchy.

Roland

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019