Compiler support for single segment namespaces has always been spotty and
there's no intention to improve it. There are fundamental semantic issues -
for example if you have a DOM element with a CSS id and you haven't
supplied a namespace but you goog.require one with that name it will return
the DOM element. Good luck debugging that.

Single segment namespaces are nearly alway representative of a problem
waiting to manifest. If you want to use them then you can suppress the
warning in your build options.

David

On Tue, Feb 10, 2015 at 9:47 AM, Julien Eluard <julien.elu...@gmail.com>
wrote:

> Great job as usual!
>
> A recent change makes the compiler trigger warnings for single segment
> namespaces. Are there real limitations with those or is it a best practice?
>
> Thanks,
> Julien
>
> 2015-02-10 9:37 GMT-03:00 David Nolen <dnolen.li...@gmail.com>:
>
>> Cut 0.0-2816. The only change is a fix for reader metadata leakage around
>> `reify`.
>>
>> David
>>
>> On Mon, Feb 9, 2015 at 7:47 PM, David Nolen <dnolen.li...@gmail.com>
>> wrote:
>>
>>> ClojureScript, the Clojure compiler that emits JavaScript source code.
>>>
>>> README and source code: https://github.com/clojure/clojurescript
>>>
>>> New release version: 0.0-2814
>>>
>>> Leiningen dependency information:
>>>
>>>     [org.clojure/clojurescript "0.0-2814"]
>>>
>>> There are numerous enhancements in this release including: a Nashorn
>>> REPL, Node.js 0.12 support, cljs.test async testing support,
>>> `cljs.closure/watch`, extra JSDoc annotation support, unified source
>>> mapping on client/server (thus REPLs!), and many small fixes.
>>>
>>> I'm particularly excited about unified source mapping as this means we
>>> get a much better debugging experience on newer targets (for us) like
>>> iOS, see https://github.com/omcljs/ambly
>>>
>>> ## 0.0-2814
>>>
>>> ### Enhancements
>>> * add simple source directory `cljs.closure/watch` watcher using java.nio
>>> * CLJS-1022: Concatenate foreign dependencies safely
>>> * CLJS-988: Support async testing in cljs.test
>>> * CLJS-1018: Add support for cljs.core/*e Modify the JavaScript that is
>>> sent for evaluation to wrap in a try and then catch any exception thrown,
>>> assign it to *e, and then rethrow.
>>> * CLJS-1012: Correct behavior when *print-length* is set to 0
>>> * Added new :closure-extra-annotations compiler option allowing to
>>> define extra JSDoc annotation used by closure libraries.
>>> * Mirrored source map support APIs on server/client
>>> * Unified source mapping support in REPLs
>>> * Nashorn REPL (thanks Pieter van Prooijen)
>>>
>>> ### Fixes
>>> * CLJS-1023: regression, macro-autoload-ns? and ns-dependents need to
>>> throw on cyclic dependencies
>>> * fix require with browser REPL, set base path to "goog/"
>>> * CLJS-1020: off by one error in REPL source map support
>>> * Node.js 0.12 support
>>> * browser REPL needs to respect :output-dir
>>> * CLJS-1006: Implicit dependency of clojure.browser.repl on cljs.repl
>>> * CLJS-1005: Browser REPL creates 'out' directory no matter what
>>> * CLJS-1003: fix cljs.test run-tests do-report :summary issues
>>> * CLJS-1003: Cannot pass custom env to run-tests
>>> * Windows Node.js REPL issues
>>>
>>>
>>  --
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "ClojureScript" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojurescript+unsubscr...@googlegroups.com.
>> To post to this group, send email to clojurescript@googlegroups.com.
>> Visit this group at http://groups.google.com/group/clojurescript.
>>
>
>  --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to