Hacker News new | past | comments | ask | show | jobs | submit login

Is the former different from a hypothetical Result::Err type (I don't know if you'd spell that Result::Err<T> or Result::<T>::Err)?





Different solutions to the same problem. Pattern types are more general than enum variant types.

Same concept, but generalized to any type, not just enums.



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

Search: