dcsobral/scala — comment on commit 545680b2746cc0c7ae658f6c66e68e763b0b58c9
File: src/library/scala/PartialFunction.scala line 24
By Blaisorblade:

'an alternative behavior can be applied...' was confusing to me until I saw the example; therefore I'd be more explicit, by avoiding passive and explaining _what_ can apply an alternative behavior, and say that '[the main distinction ... is that] with `PartialFunction`, code might inspect which elements are declared to be outside the domain and apply an alternate behavior."