Related articles |
---|
Problems with Hardware, Languages, and Compilers hrubin@stat.purdue.edu (1997-03-07) |
Definable operators (was: Problems with Hardware, Languages, and Compi rrogers@cs.washington.edu (1997-03-09) |
Re: Definable operators (was: Problems with Hardware, Languages, and C sethml@ugcs.caltech.edu (1997-03-13) |
Re: Definable operators (was: Problems with Hardware, Languages, and C rrogers@cs.washington.edu (1997-03-13) |
Re: Definable operators (was: Problems with Hardware, Languages, and C creedy@mitretek.org (1997-03-14) |
Re: Definable operators (was: Problems with Hardware, Languages, and C nmm1@cus.cam.ac.uk (1997-03-16) |
Re: Definable operators (was: Problems with Hardware, Languages, and C andy@cs.Stanford.EDU (1997-03-16) |
Re: Definable operators (was: Problems with Hardware, Languages, Dave@occl-cam.demon.co.uk (Dave Lloyd) (1997-03-16) |
[4 later articles] |
From: | rrogers@cs.washington.edu (Richard Rogers) |
Newsgroups: | comp.compilers,comp.lang.misc,comp.arch.arithmetic |
Date: | 9 Mar 1997 11:36:08 -0500 |
Organization: | Computer Science & Engineering, U of Washington, Seattle |
References: | 97-03-037 |
Keywords: | design |
>[.... I used IMP72, a language where
>you could add any operations you wanted, and it was awful. -John]
Why was it awful? It seems to me that mathematicians would be quite
frustrated if they were restricted to using + - * and / in their
papers... Granted, it would require some discipline (what language
feature doesn't? :-), but we seem to be pretty good at understanding
traditional math notation where it's normal to define appropriate
operators for the objects under consideration. But I've never used a
language that allowed operator definition....
--
Richard Rogers (rrogers@cs.washington.edu)
Computer Facilities Director -- Northwest Center for Environmental Education
http://www.cs.washington.edu/homes/rrogers/nceepg.html
[IMP72 let you stick BNF in your programs so you could add any syntax
you wanted. The problem was that everyone did, so before you could
read an IMP72 program you first had to figure out what language it was
written in. Experience with C++ tells me that even operator
overloading can easily lead to unmaintainable code if you can no
longer tell at a glance what each operator does. -John]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.