Yes a warning would be great as well as fixing the examples.

Ticket & patch welcome.

On Monday, January 7, 2013, Peter Taoussanis wrote:

> > I would not rely on this behavior. Follow Clojure's property access
> conventions.
>
> Sorry to dig this up again - would just like to clarify:
>
> The idiomatic way of accessing something like `window.location.pathname`
> then would be (aget js/window "location" "pathname"), or nested .-
> accesses, correct? I know things with Cljs are developing quickly and
> I keep seeing the `js/window.location.pathname` form pop up (including in
> Clojurescript's samples/twitterbuzz/src/twitterbuzz/anneal.cljs), so just
> wanted to double check.
>
> Assuming the latter form is indeed incorrect, any chance of adding a
> compiler warning to start dissuading people from using it?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to 
> [email protected]<javascript:_e({}, 'cvml', 
> '[email protected]');>
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> [email protected] <javascript:_e({}, 'cvml',
> 'clojure%[email protected]');>
> 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 post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to