Eigenstate: myrddin-dev mailing list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wishlist.


Interesting portion:



Better error handling:

What will this look like? Needs thought.

References:

If you know of any, I WANT.



http://blog.burntsushi.net/rust-error-handling/
Informal intro to Rust-style error handling via monads, although the site
avoids the word "monad" to avoid invoking excess fear.

http://homepages.inf.ed.ac.uk/wadler/papers/marktoberdorf/baastad.pdf
Monad stuff comes at page 6 (section 2.5). Basically the same as the above,
with all the boring formality.

http://felix-lang.org/$/usr/local/lib/felix/felix-latest/share/lib/std/datatype/option.flx
Felix implementation version of the above

Despite being an exceptions fan, I *love* the Haskell/Rust/Felix method of
handling errors, most particularly the Haskell way:

f n = do
  a <- someFunction
  a + n

If someFunction throws an error, it will be propagated to the parent
invisibly. Kind of like a mix of exceptions and exception specifications
without the annoying verbose crap involved.


On Fri, Jul 3, 2015 at 2:11 PM, Ori Bernstein <ori@xxxxxxxxxxxxxx> wrote:

> Wrote up a wishlist. Pretty much, it's a list of things that I'd like to
> work
> on at some point. Unless someone else gets to them first, of course.
>
> http://eigenstate.org/myrddin/wishlist
>
> --
>     Ori Bernstein
>
>


-- 
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer than your
program. Something’s wrong.
http://kirbyfan64.github.io/

Follow-Ups:
Re: Wishlist.Ori Bernstein <ori@xxxxxxxxxxxxxx>
References:
Wishlist.Ori Bernstein <ori@xxxxxxxxxxxxxx>