🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #130

Re: New Language/Compiler (ideas wanted)

#130
From: Gerben 'P' Vos
Date: Fri, 14 Aug 1992 09:33
32 lines
1843 bytes
Gavin Flower writes:

>A number of years ago, someone suggested a "comfrom", to match a
>"goto".  When it was first mentioned, it was as a joke.  However, the
>more I thought about it, the more it appealed...

The "come from" was intended to be used * without * a corresponding goto,
so it would actually be a construct which would encourage really horrible,
disgusting, unstructured, <insert rude word here> core (oops, i meant code,
but core is probably appropriate too :-) ).

It has been implemented in some languages as a debugging tool---not to be
used in real code. Also, it has been implemented in INTERCAL, a joke
language, which encourages programming worse than found in the Obfuscated
C Programming Contest.

>The idea is that both ends of the goto are labeled.  This has several
>advantages:-

>(1) At the target label, the "comefrom" clearly identifies the places
>from which the current label can be reached, and just how many places.

>(2) Also it will help to discourage indiscriminant use of the
>"dreaded goto", without preventing its use in "appropiate" contexts.

>(3) This would give the compiler more scope for picking up errors.

But the way you propose it, it sounds actually very nice.

. . . . . . . . . . . . . . . . . . . . . . . . . . . G e r b e n   V o s   <><
Aconet: 8500/104!Gerben Vos  Internet: gpvos@cs.vu.nl
This .signature is a Usenet Olympic Record holder. Copy it now!
Technical Details
Message-ID: <15750@star.cs.vu.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!star.cs.vu.nl!gpvos
References: <1195@grun.is> <1992Aug13.130618.18871@odin.diku.dk> <BsyHIG.GMu@comp.vuw.ac.nz>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!star.cs.vu.nl!gpvos
From: gpvos@cs.vu.nl (Gerben 'P' Vos)
Newsgroups: comp.sys.acorn.tech
Subject: Re: New Language/Compiler (ideas wanted)
Keywords: Compiler/Language
Message-ID: <15750@star.cs.vu.nl>
Date: 14 Aug 92 09:33:02 GMT
References: <1195@grun.is> <1992Aug13.130618.18871@odin.diku.dk> <BsyHIG.GMu@comp.vuw.ac.nz>
Sender: news@cs.vu.nl
Lines: 32