Interesting article and discussion about Python's standard library

John Colvin john.loughran.colvin at gmail.com
Wed May 22 10:55:09 UTC 2019


On Tuesday, 21 May 2019 at 16:39:29 UTC, H. S. Teoh wrote:
> On Tue, May 21, 2019 at 12:29:55PM -0400, Nick Sabalausky 
> (Abscissa) via Digitalmars-d wrote:
>> [...]
>
> This is a very interesting idea indeed.  Goes along well with 
> Andrei's recent idea of addition vs. replacement.
>
> And I think it's probably not hard to adopt in D (should we 
> deem it a good idea -- that's still arguable): all you need is 
> for module declarations to come with an attached version 
> number, then include that in the mangling. This automatically 
> gives a unique identifier to symbols in the module, so you 
> could import multiple versions of the same module and have the 
> symbols resolve correctly. Just a minor change in module 
> declarations and in module name mangling.
>
> Of course, how to handle imports that may have multiple 
> satisfying versions is another, stickier, question.
>
>
> T

Also, type versioning. Types from different versions would have 
to be completely separate, which would break function signatures, 
overloads, introspection etc.


More information about the Digitalmars-d mailing list