Re: choosing a teaching language, was Java compiler courses

glen herrmannsfeldt <gah@ugcs.caltech.edu>
Sun, 13 May 2007 14:02:46 -0800

          From comp.compilers

Related articles
Java compiler courses wookiz@hotmail.com (wooks) (2007-04-20)
Re: Java compiler courses usenet@gmx.info (Michael Klemm) (2007-04-26)
Re: Java compiler courses marcov@stack.nl (Marco van de Voort) (2007-05-10)
Re: choosing a teaching language, was Java compiler courses DrDiettrich1@aol.com (Hans-Peter Diettrich) (2007-05-11)
Re: choosing a teaching language, was Java compiler courses cdsmith@twu.net (Chris Smith) (2007-05-12)
Re: choosing a teaching language, was Java compiler courses gah@ugcs.caltech.edu (glen herrmannsfeldt) (2007-05-13)
Re: choosing a teaching language, was Java compiler courses kenney@cix.compulink.co.uk (2007-05-14)
Re: choosing a teaching language, was Java compiler courses marcov@stack.nl (Marco van de Voort) (2007-05-15)
Re: choosing a teaching language, was Java compiler courses DrDiettrich1@aol.com (Hans-Peter Diettrich) (2007-05-16)
Re: choosing a teaching language, was Java compiler courses DrDiettrich1@aol.com (Hans-Peter Diettrich) (2007-05-16)
| List of all articles for this month |
From: glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups: comp.compilers
Date: Sun, 13 May 2007 14:02:46 -0800
Organization: Compilers Central
References: 07-04-074 07-04-118 07-05-037 07-05-039 07-05-045
Keywords: courses, design
Posted-Date: 13 May 2007 18:14:01 EDT

Chris Smith wrote:


> Hans-Peter Diettrich <DrDiettrich1@aol.com> wrote:


>>[...] whereas Pascal is well suited for such
>>an task, without a need for using any additional library.


>>The same for C++ or Java, these also are useless without additional
>>libraries, [...]


> Huh? I'm trying to figure out where you're coming from here.


I believe this is the old explicit vs. implicit library call question.
Languages like Fortran use statements such as READ and WRITE for I/O,
which compile into library calls. C and Java explicitly call I/O
functions/methods. There are advantages and disadvantages of each,
but in most cases the differences aren't that big.


You can extend it to operators vs. function calls, too. Fortran has
the MOD function, C has the % operator. PL/I has the SUBSTR function,
Fortran uses substring notation (start:end), though it isn't an
operator. (It can't be applied to string expressions, only to
CHARACTER variables.) C has bitwise logical operators, Fortran has
bitwise logical functions.


-- glen


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.