Notes from the trenches. I successfully migrated both ClojureScript One and Domina to the new syntax in about ~35 minutes (including tests). I had an unfair advantage having worked on the ClojureScript change, but for your own purposes the following techniques for migration should help:
- length and innerHTML properties are prevalent and should all change to -length and -innerHTML outright - Using the aforementioned warning messages displayed by the ClojureScript compiler will help to pinpoint possible old-style property accesses. It will not always be accurate in identifying a prop lookup, but it helps to double check. - Calls to set! take a "place" as their first argument. These are often property slots of the form (set! (. an-obj -aprop) 42). These "places" should be double checked. - As a sanity check I checked every dot macro call [1] and just made sure that a property access was formed properly. And that's it. Enjoy [1]: i.e. I searched for "(\." in Emacs and looked at the found code. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en