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

> If C# and Visual Basic had support for higher-kinded types

Although it doesn't have higher-kinded types it can do ad-hoc polymorphism which will get you most of the way there. The primary problem is C#'s terrible type-inference, which means type annotations everywhere.

I am currently migrating the types in my language-ext project [1] (a functional framework for C#) to support this. Take a look at this [2] issue raised for a discussion on ad-hoc polymorphism in C#. There are lots of links to examples further down.

[1] https://github.com/louthy/language-ext

[2] https://github.com/louthy/language-ext/issues/120




Language-ext is a fantastic project, thank you for your hard work!


My pleasure :)


That is a very nice piece of work! Well done!


Thanks :) It's definitely a labour of love!




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

Search: