>>>>> "Magnus" == Magnus Carlsson <[EMAIL PROTECTED]> writes:

    Magnus>  [...]
    >> However, passing around option values to the different parts of
    >> your program is a major bore, so what about instead treating
    >> argv for what it really is, a constant, and make it available
    >> as such (System.argv :: [String]), say. Having it as constant
    >> has the nice property that your program's option values can now
    >> be turned into CAFs, and you'll avoid all the pains of
    >> plumbing, i.e.,
    Magnus>  [...]

    Magnus> Just some comments:

    Magnus> If you want to dynamically load code (which is possible in
    Magnus> hbc, not to mention Erlang), or even create it on the fly,
    Magnus> things get complicated if this new code suddenly refers
    Magnus> to, say, standard input, which you've happily garbage
    Magnus> collected many years ago...

    Magnus> Speaking of the pain of plumbing, a relief could be first
    Magnus> class modules. But maybe this is too far away from
    Magnus> Haskell.

What are first class modules ? Can you give a reference (preferably
online) ?

Tim
-- 


----------------------------------------------------------------------
T.R.BARBOUR                             Email : [EMAIL PROTECTED]
----------------------------------------------------------------------
Department of Computer Science
The University of Melbourne
Parkville, Victoria 3052
Australia
----------------------------------------------------------------------



Reply via email to