I am using ':use' for my own namespaces.I know it's discouraged, but if i
can control my own code,why not? Compiler can give me warnings and i
process all warnings carefully.



2013/7/25 Steven Degutis <sbdegu...@gmail.com>

> If our votes count for anything, then I'd like to add +1 for getting rid
> of :use, and strongly discouraging :refer :all.
>
>
> On Wed, Jul 24, 2013 at 11:16 AM, Alex Baranosky <
> alexander.barano...@gmail.com> wrote:
>
>> +1 for scary compiler deprecation warning for 1.6.0, then removing :use
>> in the 1.7.0 release.
>>
>>
>> On Wed, Jul 24, 2013 at 8:49 AM, Softaddicts <lprefonta...@softaddicts.ca
>> > wrote:
>>
>>> I disagree, when I use tracing fns and other useful REPL tools,
>>> I like to have them included without having to prefix them with an alias.
>>>
>>> It's not a hack  it's a feature and you are free to use it or not.
>>> If code writers do not care about code readers it's a choice, maybe bad
>>> but
>>> that decision is not yours to take. It's theirs in their own context.
>>>
>>> Now this thread has slowly shifted to "can we streamline how we express
>>> this
>>> feature" to "lets forbid this feature to be used". If ends up creating
>>> such
>>> "policies" enforced by the language, it's the wrong route.
>>>
>>> My answer to such proposals is a definite "no". This a red line to me
>>> that should
>>> not be crossed.
>>>
>>> Luc P.
>>>
>>>
>>> > > I hate it mainly in blogs, where they explain some new API. They :use
>>> > like 3 namespaces and you have to guess which fn is from which ns :)
>>> >
>>> > Agree.
>>> > Code is read much more often than it is written, so omitting a few
>>> > character is not effective time-saving.
>>> > I also don't like :refer :all.
>>> > I think it should be considered hack rather than official feature.
>>> >
>>> > On Wednesday, July 24, 2013 3:17:02 AM UTC+9, Jozef Wagner wrote:
>>> > >
>>> > > +1, :use is IMO an antipattern.
>>> > >
>>> > > I hate it mainly in blogs, where they explain some new API. They
>>> :use like
>>> > > 3 namespaces and you have to guess which fn is from which ns :)
>>> > >
>>> > > JW
>>> > >
>>> > > On Tuesday, July 23, 2013 5:50:50 PM UTC+2, Greg Slepak wrote:
>>> > >>
>>> > >> I think I read somewhere that :use is no longer encouraged, but I
>>> could
>>> > >> be mistaken.
>>> > >>
>>> > >> From what I've read, it seems like most people agree that Clojure
>>> has too
>>> > >> many ways of including/importing/referencing/requiring/using things:
>>> > >>
>>> > >>
>>> > >>
>>> http://blog.8thlight.com/colin-jones/2010/12/05/clojure-libs-and-namespaces-require-use-import-and-ns.html
>>> > >>
>>> > >> The above gives a very nice explanation of all the various
>>> difference,
>>> > >> but it also acknowledges their complexity.
>>> > >>
>>> > >> Since :use uses :require, and since :require can do everything that
>>> :use
>>> > >> can, can we simplify Clojure programming a bit for newcomers by
>>> deprecating
>>> > >> the use of :use? The situation in ClojureScript is even worse
>>> because it
>>> > >> adds :require-macros on top of all the other ways of including
>>> files.
>>> > >>
>>> > >> Ideally, it would be awesome if there was just a single directive
>>> for
>>> > >> everything, but perhaps there's some complicated low-level reason
>>> why
>>> > >> that's not possible. :-\
>>> > >>
>>> > >> Thoughts?
>>> > >>
>>> > >> Thanks,
>>> > >> Greg
>>> > >>
>>> > >> P.S. If this has already been brought up you have my sincere
>>> apologies.
>>> > >>
>>> > >> --
>>> > >> Please do not email me anything that you are not comfortable also
>>> sharing
>>> > >> with the NSA.
>>> > >>
>>> > >>
>>> >
>>> > --
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Clojure" group.
>>> > To post to this group, send email to clojure@googlegroups.com
>>> > Note that posts from new members are moderated - please be patient
>>> with your first post.
>>> > To unsubscribe from this group, send email to
>>> > clojure+unsubscr...@googlegroups.com
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/clojure?hl=en
>>> > ---
>>> > You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> > To unsubscribe from this group and stop receiving emails from it, send
>>> an email to clojure+unsubscr...@googlegroups.com.
>>> > For more options, visit https://groups.google.com/groups/opt_out.
>>> >
>>> >
>>> >
>>> --
>>> Softaddicts<lprefonta...@softaddicts.ca> sent by ibisMail from my ipad!
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clojure@googlegroups.com
>>> Note that posts from new members are moderated - please be patient with
>>> your first post.
>>> To unsubscribe from this group, send email to
>>> clojure+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to clojure+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>  --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
庄晓丹
Email:        killme2...@gmail.com xzhu...@avos.com
Site:           http://fnil.net
Twitter:      @killme2008

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to