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

Working with Generics in Swift often made me feel I was missing something, pushing me to refactor my code once things started pushing past the trivial usage of generics because types started fighting back. Indeed I noticed that the requirement that types are declared “from the outside” made things harder.

Another thing is combining protocols with generics. That feels a lot more convoluted than might be necessary.

Seeing people express exactly what is the problem and what could be a solution is impressive. I hope we’ll see reverse generics soon.



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

Search: