Re: help actually changing :use to :require :refer :all?

2013-07-29 Thread Stefan Kamphausen
Would it still bother you if the IDE helped maintain the ns declaration? IMHO, having to rely on my editor or an IDE to manage my code would be a language design smell. Not that I would mind a little help here and there, though -- e.g. indentation, completion and a message if there seem

Re: help actually changing :use to :require :refer :all?

2013-07-28 Thread Phil Hagelberg
On Saturday, July 27, 2013 4:46:06 PM UTC-7, Alex Baranosky wrote: On our work projects at Runa, we have an unwritten code standard of always writing out the full namespace, and not using shortcuts as you suggest. The reason being that it can be very hard to search for usages of a

help actually changing :use to :require :refer :all?

2013-07-27 Thread Lee Spector
I'm trying to actually change some instances of :use to :require :refer :all, as urged by several people here, and it's not as simple as I had hoped. Or I'm missing something obvious. If I have a simple little project containing a namespace declared as follows: (ns use2require.core (:use

Re: help actually changing :use to :require :refer :all?

2013-07-27 Thread Laurent PETIT
2013/7/27 Lee Spector lspec...@hampshire.edu: I'm trying to actually change some instances of :use to :require :refer :all, as urged by several people here, and it's not as simple as I had hoped. Or I'm missing something obvious. If I have a simple little project containing a namespace

Re: help actually changing :use to :require :refer :all?

2013-07-27 Thread Lee Spector
On Jul 27, 2013, at 1:25 PM, Laurent PETIT wrote: But it's really not much better. This too will explode the number of lines in many of my ns declarations. Is there indeed a reasonably concise way to do this? What is it? Would it still bother you if the IDE helped maintain the ns

Re: help actually changing :use to :require :refer :all?

2013-07-27 Thread Laurent PETIT
2013/7/27 Lee Spector lspec...@hampshire.edu: On Jul 27, 2013, at 1:25 PM, Laurent PETIT wrote: But it's really not much better. This too will explode the number of lines in many of my ns declarations. Is there indeed a reasonably concise way to do this? What is it? Would it still bother

Re: help actually changing :use to :require :refer :all?

2013-07-27 Thread Colin Fleming
BTW Lee, going back to your original question, I think the solution that you came up with is the only one I can think of that does what you want. Of course you can put it on one line: (ns use2require.core (:require [use2require [myfns :refer :all] [yourfns :refer :all]])) But I agree it's more

Re: help actually changing :use to :require :refer :all?

2013-07-27 Thread Alex Baranosky
Lee, On our work projects at Runa, we have an unwritten code standard of always writing out the full namespace, and not using shortcuts as you suggest. The reason being that it can be very hard to search for usages of a namespace if you don't fully qualify them, which makes refactoring a

Re: help actually changing :use to :require :refer :all?

2013-07-27 Thread Lee Spector
On Jul 27, 2013, at 7:44 PM, Colin Fleming wrote: BTW Lee, going back to your original question, I think the solution that you came up with is the only one I can think of that does what you want. Of course you can put it on one line: (ns use2require.core (:require [use2require [myfns

Re: help actually changing :use to :require :refer :all?

2013-07-27 Thread Lee Spector
On Jul 27, 2013, at 3:49 PM, Laurent PETIT wrote: Here's how I see it: it would change the ns declaration depending on the choices you make in the code completion list. That is, the code completion list would have to not only be made of what's already loaded in the REPL (as is generally the

Re: help actually changing :use to :require :refer :all?

2013-07-27 Thread Colin Fleming
It's true that both Laurent's and my suggestions are complicated, but we're thinking about it from an implementer's point of view. What I currently have from a *user's* point of view for classes is great, you just don't think about it. I don't know how much Java development you've done, but this

Re: help actually changing :use to :require :refer :all?

2013-07-27 Thread Lee Spector
On Jul 27, 2013, at 8:49 PM, Colin Fleming wrote: It's true that both Laurent's and my suggestions are complicated, but we're thinking about it from an implementer's point of view. What I currently have from a *user's* point of view for classes is great, you just don't think about it. I