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

Apparently type parameter compiler work was supposed to get merged just after 1.17. [1] Does anyone know if it’s still on?

[1] https://groups.google.com/g/golang-dev/c/U7eW9i0cqmo/m/ffs0t...



The merge has already happened. The generic preview is going to be in 1.18 (early 2022).


It's already in, it has to be requested by the user with `-gcflags='-G=3'`. Of course, the feature is in heavy development and not ready for production use, YMMV.




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

Search: