🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #2600

Re: Report on defect in M2 vs C (Was Modula-2, Modula-3, C or C++)

#2600
From: Viet-Trung Luu
Date: Tue, 10 Oct 1995 18:57
14 lines
1469 bytes
On Sun, 8 Oct 1995, Neil Tungate wrote:

> My original idea still stands though - if you use parentheses
> correctly the equation will be evaluated as you intend, not as the
> compiler sees fit.

I know that most of us C/C++ programmers parenthesize defensively (due to 
a slightly broken procedence in C/C++)... but for other languages? 
Doesn't that defeat the whole idea of precedence? Why don't you just make 
precedence go left->right all the time (or may prefix or postfix)? It 
seems to me that precedence is supposed to *help* the programmer (in 
making code clear or whatever).

- Trung
Technical Details
Message-ID: <Pine.SUN.3.91.951010145523.13760B-100000@lagrange.uwaterloo.ca>
Path: arc1-ca.pugleaf.net!lagrange.uwaterloo.ca!vluu
References: <Pine.SUN.3.91.951005003000.1000A-100000-100000-100000@lagrange.uwaterloo.ca> <4540ha$hqn@regina.seh.codem.com> <813106607.29468@skipper.demon.co.uk> <4575rs$ang@solutions.solon.com> <813152827.1081@skipper.demon.co.uk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.modula2,comp.lang.modula3,comp.lang.c,comp.lang.c++,comp.lang.ada
Path: arc1-ca.pugleaf.net!lagrange.uwaterloo.ca!vluu
From: Viet-Trung Luu <vluu@lagrange.uwaterloo.ca>
Subject: Re: Report on defect in M2 vs C (Was Modula-2, Modula-3, C or C++) 
Sender: news@undergrad.math.uwaterloo.ca (news spool owner)
Message-ID: <Pine.SUN.3.91.951010145523.13760B-100000@lagrange.uwaterloo.ca>
In-Reply-To: <813152827.1081@skipper.demon.co.uk> 
Date: Tue, 10 Oct 1995 18:57:18 GMT
Content-Type: TEXT/PLAIN; charset=US-ASCII
References: <Pine.SUN.3.91.951005003000.1000A-100000-100000-100000@lagrange.uwaterloo.ca> <4540ha$hqn@regina.seh.codem.com> <813106607.29468@skipper.demon.co.uk> <4575rs$ang@solutions.solon.com> <813152827.1081@skipper.demon.co.uk> 
Nntp-Posting-Host: lagrange.uwaterloo.ca
Mime-Version: 1.0
Organization: University of Waterloo