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

Exactly this. When I write Scheme code, it trips me up when I have to re-spell variable names to avoid clashes. Experienced Scheme programmers don't find this difficult; they think it's weird to have to use funcall. It's just a function of what you're more used to.


It happens in C, when you have short function names. In the C internals of TXR, I have to be careful about using variable names like list or cons, because then those functions are not available.

A certain list accumulating macro calls the tail function. If I accidentally introduce a variable called tail where this macro is used, oops!

In typical C code, you're protected from clashes by using short variable names, and long function names.




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

Search: