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

Re: Overuse of strings

This page is part of the web mail archives of SRFI 83 from before July 7th, 2015. The new archives for SRFI 83 contain all messages, not just those from before July 7th, 2015.




One way to disambiguate would be to give the module name a single
fixed position in all import statements (requiring a separate import
clause for each module):

 (import <module-name> <import-modifier>*)
Yes. Much better.

and the modifiers are applied in the order they appear.  So the
example from the draft:

 (import (only "stack" make push! pop!)
         (add-prefix "balloons" balloon:))
 (import (add-prefix (rename (only "stack" make push! pop!)
                             (make create))
                      stack:))
becomes (modulo any changes to the module naming convention)

 (import "stack" (only make push! pop!))
 (import "balloons" (add-prefix balloon:))
 (import "stack" (only make push! pop!)
                 (rename (make create))
                 (add-prefix stack:))
Look at how much easier that is to read! That is much more natural for the common case.

--
Cheers,
Ray Blaak
blaak@xxxxxxxxxxxx