Checked vs unchecked exceptions
    Guillaume Boucher via Digitalmars-d 
    digitalmars-d at puremagic.com
       
    Mon Jun 26 13:59:44 PDT 2017
    
    
  
On Monday, 26 June 2017 at 17:50:47 UTC, Moritz Maxeiner wrote:
> I have tried using such Monads in D, but in the end it always 
> ended up being too verbose or too hard to read compared to 
> using exceptions or even simple error codes (with 0 == no 
> error).
I haven't tried that yet, tbh.  visit is nice, but can't always 
be used.  So I guess unless D introduces syntax for pattern 
matching, it will always be verbose.
In that case a reference to an error code would be the most 
viable design in D.
    
    
More information about the Digitalmars-d
mailing list