[Haskell-cafe] Re: How to serialize thunks?
Bulat Ziganshin
bulat.ziganshin at gmail.com
Fri Dec 22 06:18:23 EST 2006
Hello Joachim,
Friday, December 22, 2006, 2:30:32 AM, you wrote:
>> There is an interesting technique thay allows you to serialize infinite,
>> lazy or functional values: don't try to describe how those values look,
>> but how they came to be.
> Ah, that's an interesting approach that I haven't thought of.
i'm don't sure that Tomasz means, but at least me imagined smth like
the following:
data Struct = Struct { a::Int,
b::Int
}
c (Struct a b) = (a*)
i.e. datastructure contains only non-functional fields which includes all
necessary arguments for virtual functional fields
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list