🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #6827

Re: Hyphen as identifier characters

#6827
From: Erland Sommarskog
Date: Sat, 24 Feb 1990 22:45
20 lines
1111 bytes
Freek Wiedijk (freek@fwi.uva.nl) writes:
>I said:
> >Since hyphens are used for minus signs to, introducing them
> >is not trivial, particulary not in an existsing language. E.g,
> >      c:=a-b;
> >would suddenly be ambiguous.
>
>In Ada it would be worse! :-)
>
>	n:=n-foo-bar--subtract foo-bar from n

I don't understand what would make things worse in Ada. OK,
I see that postponing the semi-colon to the next line you can
mess it up with the comment delimiter.

Incidently, if I'm not totally confused, the comment 
   subtract foo-bar from n
is perfectly correct Cobol, including the hyphen.
-- 
Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se
Technical Details
Message-ID: <810@enea.se>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!zaphod.mps.ohio-state.edu!uakari!aplcen!uunet!mcsun!sunic!enea!sommar
References: <48a55876.12c9a@digital.sps.mot.com> <776@enea.se> <448@fwi.uva.nl>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!zaphod.mps.ohio-state.edu!uakari!aplcen!uunet!mcsun!sunic!enea!sommar
From: sommar@enea.se (Erland Sommarskog)
Newsgroups: comp.lang.misc
Subject: Re: Hyphen as identifier characters
Message-ID: <810@enea.se>
Date: 24 Feb 90 22:45:39 GMT
References: <48a55876.12c9a@digital.sps.mot.com> <776@enea.se> <448@fwi.uva.nl>
Organization: Enea Data AB, Sweden
Lines: 20