Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It looks like check can be used in calling chains.

That is, if F is string to string,error, and G is empty to string,error then

  s := check F(check G())
either assigns a string to s, or calls the handler.


I hope this doesn't make it in. I'd hate to see the inevitable

check (check A(check B(check C( ... ))))


I wouldn't. It's very explicitly saying, this is a series of calls that can fail.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: