On Apr 22, 2009, at 3:42 PM, Ramana wrote:

Can the record printer in Ikarus be customized (e.g. only
print a certain field, or print field names)?

Not yet.  There is one for customizing the printer for Ikarus's
structs, but that's undocumented and is likely to change.  (read:
I don't really like the way it works)

Can we extend equal? to new records (like "deriving Eq" in
Haskell)?

R6RS specifies that two records are equal? if they are eqv?.
Extending equal?, without giving it much thought, would be
challenging (both to the implementor and to the user) since
you'll have to extend how objects are hashed too.  Ikarus
does not yet provide an "object-hash" function, but there is
a chance that it may in the future, and we probably don't
want to cause problems down the road.

What about in R6RS (i.e. without any Ikarus-specific features)
(for both questions)?

No for both.  But R6RS gives you record inspection, so, you
can, in principle, write your own library that provides this
functionality.

Aziz,,,

Reply via email to