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

Side question : Is there any example of a language that has successfully added HKT after it was released and became popular ?



I'd say no, given that no language with HKT has ever been popular (sorry Haskell, you're cool, but not “popular”)…


I was going to object, but in doing my own research I found that Haskell ranked even below Dart in the SO Developer Survey for languages in use - and I certainly wouldn't consider Dart popular, since I've never seen, let alone met, anyone using it.

That said, "popular" is a very contextual term. Within certain classes of programmers (and I don't mean the obvious tautological one) Haskell is extremely popular, and fit for purpose. I assume the same is true for Dart.

And I would add that, in those circles, the introduction of advanced HKT features like RankNTypes has been extremely successful.


Dart is seeing a bit of interest thanks to Flutter, the cross-platform UI toolkit.


template template parameters and nested template classes work as HKT in C++ in practice (and are extensively used for exactly that purpose), and I think C++ counts as a popular language.


Would you consider Scala? It wasn't wildly popular before 2.8 (which is when HKTs were added) but not unpopular either.


I was surprised that to learn that HKT weren't part of Scala from the beginning and had to look that up. You're a bit wrong about when that happened: it was Scala 2.5 in 2007, not 2.8 which was released in 2010.


C++ did during the standardization to C++98 with template template parameters.

C++ before 1998 was a very popular language, maybe even more popular relatively than it is now.


I don't think they make or break a language for 99% of the developers.

You can get 90% there without HKT and a similar developer experience.

Current rust has some implementations which are simil-functors and simil-monads.

This is just polishing the language by lifting a restriction.


> I don't think they make or break a language for 99% of the developers.

True

> You can get 90% there without HKT and a similar developer experience.

Not really though. Unless similar developer experience means you suffer like hell and still have to deal with runtime errors and worse performance.




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

Search: