Fork me on GitHub
#clojure-spec
<
2017-06-05
>
wilkerlucio19:06:04

@alexmiller hey Alex, can you tell if there is any progress going on about the namespace aliasing for inexistent namespaces? I remember I read something around this in past, to facilitate having alias used just for namespace resolution of keywords

wilkerlucio19:06:11

currently I have a bunch of those on my code:

wilkerlucio19:06:37

(create-ns 'some.deep.nested.keyword.person)
(alias 'person 'some.deep.nested.keyword.person)

wilkerlucio19:06:49

this is ok on Clojure, but doesn't work for CLJS

wilkerlucio19:06:09

I was wondering if would be a good idea to add something into the ns form, to use like this:

wilkerlucio19:06:26

(ns my.ns
  (:alias [some.deep.nested.keyword.person :as person]))

wilkerlucio19:06:41

that would work same way as require, but without actually requiring that namespace to exist

wilkerlucio19:06:14

given the reason for that namespace is just organization sake

Alex Miller (Clojure team)20:06:33

No update right now, sorry

Alex Miller (Clojure team)20:06:04

But I believe Rich has some idea that he has not shared with me

Alex Miller (Clojure team)20:06:41

In general I think there is a strong preference not to make ns any more complicated