in reply to conditional self-execution
OK -- after reading and re-reading the first sentence of your post, I think I understand the concept.
So what's the point? It just strikes me as a clever piece of code, a solution looking for a problem. It makes more sense to me to just write a module, which is really just a library of related subroutines and variables, and call it from a script, which is just the main-line.
And I'm asking this in the nicest possible way -- I'm not trashing Ruby, just I'm really puzzled as to why one would write something like this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: conditional self-execution
by apotheon (Deacon) on Jan 30, 2008 at 11:17 UTC | |
|
Re^2: conditional self-execution
by djberg96 (Acolyte) on Jan 31, 2008 at 01:04 UTC |