in reply to Re: Re: Naming Subs
in thread Naming Subs
Symbolic references are loaded with caveats. If you know them and know to avoid them, you're fine, of course.
Dispatch hashes are still better. A hash is a portable namespace. Using a dispatch hash promotes separation between disjunct parts of your application's logic: in this case, the hash encapsulates the game logic, while the toplevel code handles the user input logistics.
Not to mention that just understanding that you can "store subs in a hash" is a large conceptual step that will open up an entire world of new possibilities.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^3: Naming Subs
by dug (Chaplain) on Jan 13, 2003 at 04:11 UTC | |
by theorbtwo (Prior) on Jan 13, 2003 at 04:19 UTC | |
by Abigail-II (Bishop) on Jan 13, 2003 at 14:36 UTC | |
by dug (Chaplain) on Jan 13, 2003 at 04:28 UTC | |
by Aristotle (Chancellor) on Jan 13, 2003 at 09:03 UTC | |
by theorbtwo (Prior) on Jan 13, 2003 at 05:19 UTC | |
by dug (Chaplain) on Jan 13, 2003 at 05:44 UTC | |
|