in reply to Re: Returning a Junction
in thread Returning a Junction
Your solution isn't transparent to the end user. With a junction, the module simply returns the junction and the end user doesn't have to care--they test equality against a string they expected the module to return and nothing more needs to be done. No current code needs to be changed.
Anyway, I just thought it was a cool use of a feature that isn't practical to use yet . . .
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Returning a Junction
by diotalevi (Canon) on Sep 04, 2003 at 15:04 UTC |