Re: Arithmetic overflow checking
On 7/14/2011 10:14 PM, MikeP wrote:
Patricia Shanahan wrote:
On 7/6/2011 8:35 AM, rop rop wrote:
Hi,
If I want to have arithmetic-overflow checking in all parts of an
application,
what is the most practical, simple, efficient way to achieve this?
Write the application in Ada.
Patricia
But C# is very Java-like and has "checked" and also the compiler-level
equivalent, so C# would be the better alternative. (And yes, I do know
you were just kidding about Ada).
No, I was not really joking, though I did not attempt to find all the
languages that would meet the stated requirement.
I'm very strongly of the opinion different languages should provide
different features, making different trade-offs, and programmers should
pick the language for a job based on its requirements and those features.
The alternative a lot of programmers follow seems to be to pick one
language, ignore all the others, and then complain when there is a
mismatch between that language's features and their current requirements.
I have no problem with pushing minor changes and additional features
within the general framework of a language, but if the basic framework
is not a good match for a job, the solution is to pick a language that
is more suitable.
Patricia