chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-janitors] #1581: record-instance? from (chicken memory repr


From: Chicken Trac
Subject: Re: [Chicken-janitors] #1581: record-instance? from (chicken memory representation) fails in modules
Date: Sat, 02 Feb 2019 12:03:29 -0000

#1581: record-instance? from (chicken memory representation) fails in modules
---------------------------------------+-------------------
            Reporter:  kooda           |      Owner:
                Type:  defect          |     Status:  new
            Priority:  minor           |  Milestone:  5.1
           Component:  core libraries  |    Version:  5.0.0
          Resolution:                  |   Keywords:
Estimated difficulty:  easy            |
---------------------------------------+-------------------

Comment (by sjamaan):

 It seems to me we have several ways to do this.

 We can document this, so that the user will know to pass in `'foo#bar` as
 the record name.

 We could also strip the prefix when comparing, so that **any** `bar` is
 accepted.  That means it will also accept a bar from a completely
 different module, which might not be desirable (but it's more consistent
 with the pre-5 version).

 Finally, we could make it syntax somehow (or add a syntax for getting a
 namespaced record name) and read out ##sys#current-module.

 I prefer simply documenting the current behaviour, because `(chicken
 memory representation)` is a relatively low-level module already anyway.

--
Ticket URL: <https://bugs.call-cc.org/ticket/1581#comment:1>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]