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

> where you can then have `Person<Option>` ... This is something I find myself reaching for surprisingly frequently

What's a practical use case for it? It's cool in theory, but I struggle to come up with something that doesn't use at most 2 implementations (just copy the struct then), or some API where the types don't mix and can be generated via a macro instead.



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

Search: