No there isn't.
On Wed, Jan 29, 2014 at 9:59 PM, Julien Eluard <[email protected]>wrote: > Just to make sure I have all the info: there is no option in ClojureScript > to do the equivalent of (.-property obj) but with a string identifying the > property that would not rely on the bracket operator? > > > 2014-01-29 David Nolen <[email protected]> > >> On Wed, Jan 29, 2014 at 9:40 PM, Julien Eluard >> <[email protected]>wrote: >> >>> That's definitively a workaround that would work for most common cases. >>> >>> Googling around I found the definition of a JS identifier (ES 5.1) is >>> not exactly trivial: >>> http://mathiasbynens.be/notes/javascript-identifiers . I can't even see >>> what part of the definition prevents dash in names. The author of this >>> article also states a complete regex would be 11,236 characters long.. >>> >> >> The other option is to use the one of good pure JavaScript parsers such >> as Esprima, I'm assuming they provide accurate and fast facilities for >> validating JS identifiers. >> >> David >> >> -- >> 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 [email protected]. >> To post to this group, send email to [email protected]. >> 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 [email protected]. > To post to this group, send email to [email protected]. > 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
