From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,30df5a909ff1af4 X-Google-Attributes: gid103376,public From: Brian Rogoff Subject: Re: Answering an Ada/COBOL Question Date: 1999/11/13 Message-ID: #1/1 X-Deja-AN: 548372829 References: <80hr16$5q2$1@nntp5.atl.mindspring.net> <80leu1$k3l$1@nnrp1.deja.com> Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: nntp1.ba.best.com 942563820 212 bpr@206.184.139.136 MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-11-13T00:00:00+00:00 List-Id: On Sun, 14 Nov 1999, Robert Dewar wrote: > In article > , > > I don't want to rain on your parade, but how is this nicer > > than the pattern matching capability that all modern > > functional programming > > languages have? > > Sure, these pattern matching facilities handle this capability > fine, though often not with such convenient syntax. But that's > besides the point given that none of these "modern functional > programming languages" are even vaguely suitable for fiscal > programming. Let me put back in a quote you snipped to remind you of what the point I commented on is > Richard D Riehle wrote: > > Yes, indeed. The COBOL version of a case statement is still the > > most elegant design of multiway selection I have seen in any > > language. I also found the ML version of the case syntactically much nicer. Also, pattern matching works on more than just sequences of booleans. Note that I am not commenting at all on the suitableness of FPs for fiscal programming, just on the claim of "most elegant case design" for COBOL. -- Brian