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

For a program about classroom-scheduling, it would be nice if you could use "class" as a structure name. Then you could declare a function as taking a "class" as an argument. But if "class" is a reserved keyword in the language, you have to come up with some other name like "_class" or "ClassStruct".

I didn't mean to say it's an earth-shattering obstacle. Just one minor additional nitpick to add to the gigantic pile of problems caused by OOP.



The use of "clazz" by Java programmers always seemed like a good solution to me.


Clazzy. Is there a name for this design pattern when the name you wanted was already taken by a language keyword?




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

Search: