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

#5

> If you'll tolerate my hypocrisy for a moment, here's my suggestion: try to avoid putting the const at the beginning like that

Or you could not do that, and put const in the least ambiguous place, and since you rarely have a 'type* const ' it works very well just using:

    const type*
for pointers to const types, and

    type* const
for const pointers to types, and entirely unambiguous.


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

Search: