Path: 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 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?)