[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rename from q to queue
From: |
Ludovic Courtès |
Subject: |
Re: rename from q to queue |
Date: |
Fri, 15 Apr 2016 10:10:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Christopher Allan Webber <address@hidden> skribis:
> Ludovic Courtès writes:
[...]
>> We could do a quick hack to iterate over the exported bindings,
>> re-export them, and print a message.
>>
>> However, I think it would be best to have a mechanism in the module
>> abstraction to /declare/ renames. That would allow both the compiler
>> and the run-time support to emit an appropriate warning.
>>
>> This would require something like adding a special field to ‘module’
>> records, such that one can write, say:
>>
>> (define-module (ice-9 q)
>> #:superseded-by (ice-9 queue))
>>
>> With that in place, it will become much easier to discuss about ice-9
>> renames, IMO.
>>
>> Thoughts?
>>
>> Thanks,
>> Ludo’.
>
> I think that would be useful. There's been talk about renaminig things
> from (ice-9) into a (guile) namespace. Likewise aliasing things from
> (srfi) to something more human-readable. Are the rename and aliasing
> thing the same step or two different things?
Module aliases and deprecation would probably be implemented similarly,
so there’s a connection between the two.
Ludo’.