Article View: comp.lang.misc
Article #6070Re: Expression Based Language
From: Bruce Albrecht
Date: Thu, 29 Dec 1988 16:27
Date: Thu, 29 Dec 1988 16:27
15 lines
917 bytes
917 bytes
Another expression based language is Algol 68. Not only is
a := case month
in 31, if year mod 4 = 0 then 29 else 28 fi, 31, 30, 31, 30, 31, 31,
30, 31, 30, 31 esac;
legal, but so is
if a=b then a else c fi := d;
and they can be abbreviated to
a := (month|31, (year mod 4 = 0|29|28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
and
(a=b|a|c) := d;
respectively. (And who said C could be terse and unreadable?)
Technical Details
Message-ID:
<1119@raspail.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!csd4.milw.wisc.edu!nic.MR.NET!shamash!raspail!bgaReferences:
<3300001@uxg.cso.uiuc.edu> <3290002@hpctdls.HP.COM> <4505@xenna.Encore.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!csd4.milw.wisc.edu!nic.MR.NET!shamash!raspail!bga From: bga@raspail.UUCP (Bruce Albrecht) Newsgroups: comp.lang.misc Subject: Re: Expression Based Language Summary: Algol 68 Message-ID: <1119@raspail.UUCP> Date: 29 Dec 88 16:27:16 GMT References: <3300001@uxg.cso.uiuc.edu> <3290002@hpctdls.HP.COM> <4505@xenna.Encore.COM> Organization: Control Data Corporation, Arden Hills, MN Lines: 15