Well, do actually means "execute all of the following forms, sequentially,
at this point". It seems to me that the position of saying this also works
when "this point" is the top-level is sensible.

I do not know what your actual use-case is, but, as Meikel said, it seems a
bit strange to use intern if you know the symbol at compile time.

On Friday, 20 September 2013, Phillip Lord wrote:

> Meikel Brandmeyer <brandmeyer.mei...@gmail.com <javascript:;>> writes:
> > 2013/9/20 Phillip Lord <phillip.l...@newcastle.ac.uk <javascript:;>>
> >> (def bob3 3)
> >>
> >> introduces a new symbol, I am struggling to see why
> >>
> >> (intern 'user 'bob3 3)
> >>
> >> cannot be recognised similarly.
> >>
> >
> > Because intern happens at runtime. It's a normal function. The above
> intern
> > call is easily translated to the def. intern is only interesting when
> bob3
> > is computed based on runtime information, which is not available at
> compile
> > time. But then the compile cannot special case it anyway.
>
>
> From a user perspective, I think that this is very messy. I can see your
> example about "do", but then I think using a common form like do is a
> mistake; having "do" behave differently depending on whether it is top
> level or not is exposing a lot of detail that should not be.
>
> 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<javascript:;>
> 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 <javascript:;>
> 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 <javascript:;>.
> 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.

Reply via email to