Re: String concatenation design
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Tue, 28 Mar 2006 16:53:05 GMT
"Rob Thorpe" <robert.thorpe@xxxxxxxxxxxx> wrote in message news:1143552303.871560.68630@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Although many languages have many operators
and levels of prescedence in practice programmers don't like them much.
C has ~15 levels of prescedence depending on how you count them, but
programmer generally only use 4 or 5 of them and rely on parenthesis
otherwise.
Generally, you want a programming language to surprise the programmer as little as possible, and in that case, it may be good idea to have precedence rules which mimic that of standard math. A novice programmer might, for example, copy a formula straight out of a physics book, and be very surprised when his program gives unexpected results due to "weird" precedence rules.
- Oliver
.
- Follow-Ups:
- Re: String concatenation design
- From: Rob Thorpe
- Re: String concatenation design
- References:
- String concatenation design
- From: Anton Treuenfels
- Re: String concatenation design
- From: Rob Thorpe
- String concatenation design
- Prev by Date: Re: Transfer data between processes
- Next by Date: Opinions on a good choice for application re-write
- Previous by thread: Re: String concatenation design
- Next by thread: Re: String concatenation design
- Index(es):
Relevant Pages
|