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

I generally agree but there are two problems:

1. You're writing C++. You've really lost half the battle laready :) and

2. Writing correct templated code is difficult and should generally be reserved for when you're writing a library; and

3. For complicatred types like this, one should strive to increase readability by using type aliases, assuming your language supports it (eg C++ and Hack do). It's not always possible.



Complicatred: The hatred we feel for complication.




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

Search: