Silly ns question

137 views
Skip to first unread message

James Gatannah

unread,
Feb 15, 2019, 11:05:48 PM2/15/19
to Clojure
I'm using cider 0.18.0 (which is sweet) and emacs.

I just created a new buffer inside a new directory, and it generated the preliminary ns form for me (also sweet).

The path to the file under my source directory is "shared/connection-test.cljc".

The symbol of the ns that it generated is ".shared.connection-test".

I haven't seen that leading dot before. My first reaction was "That can't be legal." But, so far, the compiler doesn't seem to mind.

Does anyone have a pointer to docs that explain what's going on?

Thanks,
James

Matching Socks

unread,
Feb 16, 2019, 6:34:52 AM2/16/19
to Clojure
Haha!  (Can .shared.connection-test be require'd by another ns?)

James Gatannah

unread,
Feb 16, 2019, 4:15:25 PM2/16/19
to clo...@googlegroups.com
I haven't messed with it extensively, but it works from the REPL.

On Sat, Feb 16, 2019 at 5:35 AM Matching Socks <phill...@gmail.com> wrote:
>
> Haha! (Can .shared.connection-test be require'd by another ns?)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@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+u...@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 a topic in the Google Groups "Clojure" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/COrsNoavQqI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to clojure+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Daniel

unread,
Feb 17, 2019, 10:26:21 AM2/17/19
to Clojure
Weird. Also I thought your file name would need an underscore.

James Gatannah

unread,
Feb 17, 2019, 10:40:34 PM2/17/19
to clo...@googlegroups.com
Oops, yes. I typoed the file name.

On Sun, Feb 17, 2019 at 9:26 AM Daniel <double...@gmail.com> wrote:
>
> Weird. Also I thought your file name would need an underscore.
>

James Gatannah

unread,
Feb 26, 2019, 9:08:32 PM2/26/19
to clo...@googlegroups.com
It just got stranger.

Same project. I've been tinkering with it for about an hour a night.

I don't think I've changed anything significant structurally, although
I have restarted the JVM.

I created a new file, world_test.cljc, in the same shared/ folder as
connection_test.cljc.

cider set up the ns directive the same way, so it's

(ns .shared.world-test ...)

This time, trying to compile it failed with the error "Namespace
.shared.world-test has a segment starting with an invaild JavaScript
identifier"

Aside from misspelling "invalid", that's about what I expect.

And now the original '.shared.connection-test ns fails with the same error.
Reply all
Reply to author
Forward
0 new messages