GNU bug report logs -
#11198
serializing structs (prefabs)
Previous Next
Full log
View this message in rfc822 format
On Thu 05 Jul 2012 23:55, ludo <at> gnu.org (Ludovic Courtès) writes:
> So I’d be in the ‘define-serializable-struct’ camp, so to speak.
That's a valid position to have in general. I can also imagine cases in
which you would choose other things. It's a spectrum.
> Prefabs raise an number of interesting issues. For instance, what’s the
> meaning of #s(sprout bean #f 17) in a module where ‘sprout’ is unbound?
Prefab structs are not modular. It is the same as in a module where
`sprout' is bound. Reading #s(sprout bean #f 17) may create an RTD if
needed, but it does not create any bindings.
> types are compared by name.
As the documentation clearly indicates :), prefab structs are indeed
compared by name, though in a combination with other characteristics
(number of fields, and more characteristics for racket).
Andy
--
http://wingolog.org/
This bug report was last modified 12 years and 201 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.