> Scares me to be honest. You now have an implicit alias ":as reload", and
> are distinguishing between having an alias and having no qualification
> by nesting or otherwise. 

Sorry, I'm not sure what you're saying at the end there.

If you want to rename a namespace you can do it explicitly with :as, like I 
gave in the example with "enlive-html":

[net.cgrand enlive-html :as html]

- Greg

--
Please do not email me anything that you are not comfortable also sharing with 
the NSA.

On Aug 6, 2013, at 11:39 AM, phillip.l...@newcastle.ac.uk (Phillip Lord) wrote:

> Greg <g...@kinostudios.com> writes:
> 
>>> I am dubious about distinguishing between lists and vectors. Currently,
>>> as far as I can tell, the ns is agnostic, and only cares about them
>>> being sequential. This is probably one of the sources of confusion for
>>> beginners -- they see both and don't see why
>> 
>> The reason for distinguishing between lists and vectors is as you say, it's
>> confusing for beginnings. Also, it allows the syntax to have greater
>> functionality/power.
> 
> Really dubious about this. Having to keep in my head when I need to use
> [] and when I need to use () is a significant problem when starting. It
> was my realisation that for the ns declaration you don't that made
> things easier.
> 
>>> Also, I am confused as to how you distinguish between 
>>> [core [matrix math bs]] being equivalent to :use while
>>> Is [one reload middleware] also :use? Or :require?
>> 
>> Nested vectors = :use.
>> 
>> Thus, as the comment says, [core [matrix math bs]] => (:use (core matrix math
>> bs))
>> 
>> It's a bit confusing in the current syntax (if I have it correct), because
>> from it, it's not clear why "core" isn't "used".
>> 
>> [one reload middleware]
>> 
>> Is equivalent to:
>> 
>> (:require [one.reload :as reload]
>>          [one.middleware :as middleware])
> 
> Scares me to be honest. You now have an implicit alias ":as reload", and
> are distinguishing between having an alias and having no qualification
> by nesting or otherwise. 
> 
> I do like the idea of enforcing nesting though in 
> 
> [core [matrix math bs]]
> 
> Phil
> 
> -- 
> -- 
> 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.
> 
> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to