Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 15 Jul 2011 09:00:43 -0500 Date: Fri, 15 Jul 2011 07:00:42 -0700 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Arithmetic overflow checking References: <015aeb15-57db-48ab-9cd4-77f8448b632f@w24g2000yqw.googlegroups.com> <2rydnez7l-H5BYnTnZ2dnUVZ_vGdnZ2d@earthlink.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 36 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 70.230.204.13 X-Trace: sv3-8ekZBzhUfQpG2oGx76oL/WlaSP8yCCDl2MaICjWjQUN6u4rSbU8PpqGuV/PZuauZfVfT6qk85E3xRjY!SgNuFVANORFe5uqPMzfig61dJkddpz3SrEdoOwSOoFyUsIcKF8dnz4hKtu0ntxikvZvDIGz1icmV!9YJy0YffZqWsLqErX/d1u+M+1/pZ1BdugRBlU981a/yhzw== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2615 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6207 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