Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require-python syntax should provide for prefix lists (also, syntax is wrong) #60

Closed
jjtolton opened this issue Jan 23, 2020 · 0 comments · Fixed by #62
Closed

require-python syntax should provide for prefix lists (also, syntax is wrong) #60

jjtolton opened this issue Jan 23, 2020 · 0 comments · Fixed by #62

Comments

@jjtolton
Copy link
Contributor

Currently there is a mismatch between require-python syntax and require syntax.

(require '(a b c)) implies (require 'a.b 'a.c).

Currently, require-python syntax operates in the following manner:

(require-python '(a b c)) implies

(do 
  (require-python 'a)
  (require-python 'b)
  (require-python 'c))

This is incorrect.

(require-python '(a b c)) should also imply (require-python 'a.b 'a.c) (which also doesn't work), and (require-python 'a.b 'a.c) should imply

(do 
  (require-python 'a.b)
  (require-python 'a.c))

Special attention should also be paid to allow for (require-python '(a [b :as c :refer [blah]])) etc
which should imply (require-python '[a.b :as c :refer [blah]]).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant