[CLJ-310] clojure.repl namespace Created: 22/Apr/10 Updated: 24/Aug/10 Resolved: 24/Aug/10 |
|
| Status: | Closed |
| Project: | Clojure |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Release 1.2 |
| Type: | Enhancement | ||
| Reporter: | Anonymous | Assignee: | Unassigned |
| Resolution: | Completed | Votes: | 0 |
| Labels: | None | ||
| Approval: | Ok |
| Description |
|
promote the following fns
Also:
|
| Comments |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
Converted from http://www.assembla.com/spaces/clojure/tickets/310 |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
chouser@n01se.net said: Not interested in "show", perhaps with a better name? clojure.java/classinfo or something? For tickets like this do you actually want a patch against clojure, or is this more of a placeholder for eventual work by someone else? |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
scgilardi said: - "show" is the repl-util I use most often. I think it should be included.
|
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
stu said: updated description, hopefully now dev-able by anybody |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
stu said: pulling javadoc for now, due to the number of dependencies. May re-open it as a separate ticket. |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
tvachon said: [file:c6elQ8u8ur34WNeJe5cbLA]: Clojure core patch |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
tvachon said: [file:c6qz7Ou8ur34WNeJe5cbLA]: Clojure contrib patch |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
tvachon said: A couple items I'm not sure I got right:
Let me know - happy to update the patches. |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
stu said: Wow, print-dir sure sucks in a lot of stuff. I think we can avoid it. Can you update the clojure patch to:
Thanks! |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
tvachon said: Indeed! Patches are updated, and I think they're much nicer. I've also restored print-dir in contrib and added dir* in clojure.repl, which has slightly different semantics (in particular, it expects a symbol input, not a Namespace). We don't use print-dir anywhere in clojure-contrib now, but in case anyone else does this should minimize issues. |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
stu said: Thanks Travis, Thanks to the new "last var in wins" feature in Clojure, there is no need to remove these fns from clojure-contrib. They can stay there, and not break people who already use them that way. So we will apply only Clojure-side patch. |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
stu said: [file:cEvRP-wc8r36MfeJe5cbCb] |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
stu said: My May 5 patch includes Travis' original patch for the Clojure side, and adds a second commit that puts the (use 'clojure.repl) in the right place in main.clj, and removes the dependency on the now-defunct "seq-contains?". The two patch approach preserves provenance but means that there is an intermediate commit where the build is broken. Should we move towards a common convention for relating the names of macros and their driver fns? This patch has dir/dir* but source/get-source. |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
richhickey said: Whatever the convention is, I'm wary of blah*. In Clojure the * version is often a primitive thing. Something* is also a nice (as yet unused) variant for other meanings. Double leading underscore is pretty ugly and obviously internal to most people |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
richhickey said: blah-impl is fine too |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
tvachon said: I like the double leading underscore. Stuart - would you like me to update the original patch? I'd be happy to incorporate your changes as well if you think that's appropriate. It's a minor matter, but I also noticed that I'm using my weatherbill.com email address, which maybe isn't ideal, as this work wasn't done in that scope. That leads to a second question, probably best taken out of this but, about corporate CLAs, but I'll bring that up in a different forum. Thanks! |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
tvachon said: er - s/taken out of this but/taken out of this ticket/ |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
stu said: In this case (and perhaps in many cases) the driver fns might actually need to be called, so I don't like the __. blah-impl is fine, if you would like to make that change please do. |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
richhickey said: If we are intending to have people call the fns, like dir* and get-source, then what is here is not ok. If the macros are just macros for quoting purposes, I think we should establish a macro/macro-fn naming convention. Also, the dir* fn probably shouldn't print, i.e. the functions, if they are to have utility as functions, should be (real) functions, i.e. no side effects, return data structures, in which case the division of labor between dir and dir* (to be dir-fn) needs to change. |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
stu said: [file:d6k246wFSr35tLeJe5cbLr] |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
stu said: may 7 patch subsumes the others and is ready for review |
| Comment by Assembla Importer [ 24/Aug/10 7:41 AM ] |
|
stu said: Updating tickets (#310, #318, #341) |