🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #6865

Re: Anyone want to design a language?

#6865
From: Peter da Silva
Date: Sat, 03 Mar 1990 15:21
25 lines
1038 bytes
In c-ish syntax, how about this as the loop construct:

	while (expr)
		statement
	while (expr)
		statement
	...

Explicit breaks or continues would be deprecated...

The for loop would come out as:

	initial
	while (test)
		body
	while (true)
		increment
-- 
 _--_|\  Peter da Silva. +1 713 274 5180. <peter@ficc.uu.net>.
/      \
\_.--._/ Xenix Support -- it's not just a job, it's an adventure!
      v  "Have you hugged your wolf today?" `-_-'


-- 
Technical Details
Message-ID: <78=1NPDxds13@ficc.uu.net>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!ficc!ficc!peter
References: <22569:05:10:24@stealth.acf.nyu.edu> <8475@wpi.wpi.edu> <24123:04:14:07@stealth.acf.nyu.edu> <1966@l.cc.purdue.edu> <191@gollum.twg.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!ficc!ficc!peter
From: peter@ficc.uu.net (Peter da Silva)
Newsgroups: comp.lang.misc
Subject: Re: Anyone want to design a language?
Message-ID: <78=1NPDxds13@ficc.uu.net>
Date: 3 Mar 90 15:21:57 GMT
References: <22569:05:10:24@stealth.acf.nyu.edu> <8475@wpi.wpi.edu> <24123:04:14:07@stealth.acf.nyu.edu> <1966@l.cc.purdue.edu> <191@gollum.twg.com>
Sender: peter@ficc.uu.net (Peter da Silva)
Reply-To: peter@ficc.uu.net (Peter da Silva)
Organization: Xenix Support, FICC
Lines: 20