Article View: comp.lang.functional
Article #592Re: Why functional languages?
From: Rob Hasker
Date: Mon, 28 Sep 1992 18:33
Date: Mon, 28 Sep 1992 18:33
21 lines
1625 bytes
1625 bytes
tmb@arolla.idiap.ch (Thomas M. Breuel) writes: > My primary interest in functional languages is not ease of programming > from a human viewpoint (after all, adding imperative features to a > pure FL will not make programming in it harder), but the ease of > manipulating programs. > >Too bad that languages like SML (and, moreso, Haskell) have adopted >such a comparatively complex syntax. Writing programs to manipulate >programs is much easier in Lisp, due to the obvious correspondence >between external and internal representation and a standard interface >to the compiler/type facilities (in the form of macros and type >predicates). All you need is a parser which translates the concrete syntax to the abstract syntax (i.e., Lisp-like notation), and an "unparser" to translate back. This way the user gets the benefit of being able to write readable code and the rewrite engine doesn't have to parse anything. This approach works very well for the transformation system on which I'm working (Uday Reddy's Focus system). Rob
Technical Details
Message-ID:
<1992Sep28.183322.29254@m.cs.uiuc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!olivea!spool.mu.edu!sdd.hp.com!ux1.cso.uiuc.edu!m.cs.uiuc.edu!haskerReferences:
<1992Sep26.212935.26809@eng.umd.edu> <1992Sep28.120225.9524@odin.diku.dk> <TMB.92Sep28144424@arolla.idiap.ch>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!olivea!spool.mu.edu!sdd.hp.com!ux1.cso.uiuc.edu!m.cs.uiuc.edu!hasker From: hasker@m.cs.uiuc.edu (Rob Hasker) Newsgroups: comp.lang.functional Subject: Re: Why functional languages? Message-ID: <1992Sep28.183322.29254@m.cs.uiuc.edu> Date: 28 Sep 92 18:33:22 GMT References: <1992Sep26.212935.26809@eng.umd.edu> <1992Sep28.120225.9524@odin.diku.dk> <TMB.92Sep28144424@arolla.idiap.ch> Organization: University of Illinois, Dept. of Comp. Sci., Urbana, IL Lines: 21