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=2.6 required=5.0 tests=BAYES_20,INVALID_DATE, MSGID_SHORT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Xref: utzoo comp.lang.eiffel:99 comp.lang.ada:2190 comp.lang.c++:2801 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!etive!lfcs!db From: db@lfcs.ed.ac.uk (Dave Berry) Newsgroups: comp.lang.eiffel,comp.lang.ada,comp.lang.c++ Subject: Re: First Class Routines [Not long this time] Message-ID: <1578@etive.ed.ac.uk> Date: 14 Mar 89 18:44:44 GMT References: <114@eiffel.UUCP> <112@eiffel.UUCP> <1297@wasatch.UUCP> <118@eiffel.UUCP> Sender: news@etive.ed.ac.uk Reply-To: db@lfcs.ed.ac.uk (Dave Berry) Followup-To: comp.lang.eiffel Organization: Laboratory for the Foundations of Computer Science, Edinburgh U List-Id: In article <118@eiffel.UUCP> bertrand@eiffel.UUCP (Bertrand Meyer) writes: > First-class functions are great in [...] modern functional languages, >especially Robin Milner's ML and David Turner's Miranda. > [...] > One way to summarize this discussion is to say that I do not know of any >good way to reconcile the following three language traits: > > 1. Routine arguments (in the above sense, i.e. routine arguments to > routines). > 2. Static type checking. > 3. A language design that makes it possible to have separate > compilation of modules. Standard ML supports all three of these requirements. I believe Miranda does as well. The separate compilation schemes used in New Jersey ML and Poly/ML are rather different from those used by conventional languages, but this is mainly because ML is an interactive language, not because of the static type checking. Perhaps the problem is harder if you have type parameterisation instead of (or as well as) universal polymorphism? > More generally, the problem is one of language design. I think that routine arguments combine rather nicely with the other features of eiffel, at least what I've seen of it (a few journal articles). But it's your language, not mine. Is your book available in the U.K., by the way? Follow-ups to comp.lang.eiffel, I should think. Dave Berry, Laboratory for Foundations of Computer Science, Edinburgh. db%lfcs.ed.ac.uk@nss.cs.ucl.ac.uk !mcvax!ukc!lfcs!db