Why don't other programming languages have ranges?

Walter Bright newshound2 at digitalmars.com
Mon Jul 26 13:51:19 PDT 2010


KennyTM~ wrote:
> On Jul 27, 10 02:42, Walter Bright wrote:
>> retard wrote:
>>> I think the Java/C# developers gave up X % of the execution speed to
>>> avoid hard crashes (exceptions instead of segfaults)
>>
>> 1. segfaults *are* exceptions.
>>
>> 2. D offers a memory safe subset, and D's ranges and algorithms are
>> memory safe.
> 
> Catching exception is easy, but handling (segfault) signal is a mess.

Exceptions thrown because of programming bugs are just as unrecoverable as seg 
faults are. Making them easier to catch has the unfortunate side effect of 
seducing programmers into thinking that such are recoverable.


More information about the Digitalmars-d mailing list