Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upDeprecate clojure.core/use #112
Conversation
arrdem
added some commits
Mar 24, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
arrdem
Mar 25, 2016
Collaborator
Bug: refer does not actually support multiple body forms in the style of use or require. Consequently the generated :refer forms aren't actually correct.
|
Bug: |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
arrdem
Mar 25, 2016
Collaborator
Bug fixed. :refer forms are now legal.
I still kinda object to this patch on the grounds that it's trying to do some amount code formatting in core, which really should either be whole-hog baked in (pls no) or avoided. The argument for doing so is primarily user convenience, as this changeset does attempt to enforce a somewhat significant and loudly complained of style change and whatever help can be provided to the user will mitigate this inconvenience.
A related concern is refer. It's pretty clearly an implementation detail, and really only needed for unrestricted referrals (which are a bad idea and the reason for this change) and rename (which is also arguably a bad idea since it makes it more difficult to understand code if the names are locally rebound). Rewriting use to require and refer is correct, but if we want refer to go away (which we may well) doing so is kinda silly.
|
Bug fixed. I still kinda object to this patch on the grounds that it's trying to do some amount code formatting in core, which really should either be whole-hog baked in (pls no) or avoided. The argument for doing so is primarily user convenience, as this changeset does attempt to enforce a somewhat significant and loudly complained of style change and whatever help can be provided to the user will mitigate this inconvenience. A related concern is |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
arrdem
added some commits
Mar 25, 2016
arrdem
merged commit cce7bd8
into
develop
Mar 30, 2016
1 check passed
arrdem
deleted the
feature/deprecated-use
branch
Mar 30, 2016
Bronsa
reviewed
Mar 30, 2016
| @@ -155,6 +155,16 @@ | ||
| (. clojure.lang.RT (seq coll)))) | ||
| (def | ||
| ^{:arglists '(^clojure.lang.ISeq [coll]) |



arrdem commentedMar 25, 2016
This patch deprecates use, doing a bunch of legwork to provide automatic refactor suggestions for replacing use with require and refer.