Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

Tobias Müller via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 12 12:48:01 PDT 2015


"Dave" <whatever at whatever.com> wrote:
> On Thursday, 11 June 2015 at 20:06:45 UTC, Kagamin wrote:
>> On Thursday, 11 June 2015 at 18:17:01 UTC, Dave wrote:
>>> Disagree. Traditionally also handled by throwing exceptions. C#
>>> throws a Format exception if a parse fails.
>> 
>> https://msdn.microsoft.com/en-us/library/f02979c7%28v=vs.110%29.aspx
>> https://msdn.microsoft.com/en-us/library/bb299639%28v=vs.110%29.aspx
> 
> Forgot the one named "Parse"...
> 
> https://msdn.microsoft.com/en-us/library/b3h1hf19(v=vs.110).aspx
> 
> Microsoft does lets you opt out (as I suggested). The default function,
> the one actually named "Parse" (Int32.Parse), throws an exception by default.

Originally (.Net 1) there was only 'Parse', 'TryParse' came in .Net 2, I
guess they had to admit that exceptions are not always practical.


More information about the Digitalmars-d mailing list