>>>>> "AA" == Ashish Agarwal < agarwal1975%40gmail.com">agarwal1975
gmail.com> writes:
>> As the matter of fact, I don't need checking for None, but
>> since the type now is 'a option, it looks like I have to.
AA> Why don't you need it? You are trying to write to a channel
AA> (option) that is possibly None. What would you mean in this
AA> case? If you're working at a point in your code that is
AA> guaranteed to have opened the channel, then why not just pass
AA> around the channel (in that area of your code), instead of the
AA> optional channel.
That's the point, I don't want it to be an option. I want it to be a
global variable set at the time of "module initialization", not at the
time of variable declaration. It would be possible in scheme, where
types are not the issue, I believe.
I agree that what I want is a bit impure, just trying to understand
the capabilities of the language.
Thanks,
--
Viktor
.