in reply to Is it morally wrong to use constants as methods in a package?

Morally wrong? No. Common practice? Nope. Why? Who knows. Probably because a method isn't seen to be constant. Values are constant.

This trick only works because of the way constants are implemented (functions in the current namespace). If they were implemented differently, this wouldn't work.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

  • Comment on Re: Is it morally wrong to use consant's as methods in a package?