in reply to Is it morally wrong to use constants as methods in a package?
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.
|
|---|