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

This is also the reason we have the convention in Scala as well - the inference to partially apply the type works in a certain way. But I agree with the parent post, a more descriptive name would be better.


The obvious (and obviousyl better/correct) name for that type is Result; instead, Either should be unbiased.


Right; ostensibly you could create a language that lets you easily poke holes in any slot of a type, but I'm not sure you necessarily /gain/ a lot in doing so except for confusion. It would take a lot more convolution to specify types and instances for every function application.




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

Search: