News for hackers. Stuff that matters.
Re:From First Principles: Why Scala? by yw3410 on Thursday February 11, 2021 @04:16PM (#26107323)
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.
Re:From First Principles: Why Scala? by tomp on Saturday February 13, 2021 @06:44AM (#26123030)
The obvious (and obviousyl better/correct) name for that type is Result; instead, Either should be unbiased.
Re:From First Principles: Why Scala? by Fellshard on Thursday February 11, 2021 @06:44PM (#26109076)
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.