Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Sep 2000 14:06:01 -0400
From:      Robert Withrow <bwithrow@nortelnetworks.com>
To:        Johnny Eriksson <bygg@cafax.se>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Fdescfs updates--coming to a devfs near you! 
Message-ID:  <200009141806.OAA10683@pobox.engeast.BayNetworks.COM>
In-Reply-To: Message from Johnny Eriksson <bygg@cafax.se>  of "Thu, 14 Sep 0100 15:40:42 %2B0700." <CMM.0.90.0.968938842.bygg@nic.cafax.se> 

next in thread | previous in thread | raw e-mail | index | archive | help
[ I trimmed off current. ]

:- > Suppose I *want* a filename called "-"?  My tough luck, huh?
:- Could you settle for "./-"? 

I wouldn't want to.  Consider:  I have a program that takes user
input (from an option or a file or whatever) and uses that to
compose an output file name.  With the above I have to either 
test for "magic" filenames, or I have to correctly re-write
filenames to prepend "./" when appropriate (and  *only* when
appropriate). Sure, it can be done, but it isn't trivial work
and it has to be done to every program or you have a unexpected
lurking bug.

IMO, "magic" filenames are bad design.  Orthogonality should always
win out.

-- 
Robert Withrow -- (+1 978 288 8256)
BWithrow@BayNetworks.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009141806.OAA10683>