Hi,
from all this I'm not so sure that these two techniques do not overlap.
I mean HList tries to provide a technique for extensible Records, or
composable data structures.
So far it is possible in Haskell to extend / compose Data Structures but
not at run-time and also rather clumsily.
On
Edward Kmett wrote:
Functional references let you both read and write 'attributes' in a
structure. These can be chained to access members of members.
You can also use them to build bidirectional views on fields (and
compose those again as well).
Martijn.
I see them as addressing separate issues.
They overlap in that they both address the notion of how to access
attributes in some sense, but really they are complementary techniques.
HList as used by OOHaskell provides you with a mechanism by which you can
define extensible records and structural s
Hi all,
I wonder if there is some a "field of use" overlap between HList and
functional references aka accessors.
Do both tackle the same problem?
Günther
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listin