We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All of the following are equivalent, but the first is not documented:
(set! obj -field val)
(set! (. obj -field) val)
(set! (.-field obj) val)
Also, the second one is documented wrong as:
(set! (.- instance-expr instanceFieldName-symbol) expr) ; ^ space should be removed
example using doto:
(def obj (doto (create-obj) (set! -field1 1) (set! -field2 2)))
the arity is only documented here in a parser comment:
(defmethod parse 'set! [_ env [_ target val alt :as form] _ _] (let [[target val] (if (= 4 (count form)) ;; (set! o -prop val) [`(. ~target ~val) alt]
source from slack:
https://clojurians.slack.com/archives/C03S1KBA2/p1704890400974659
The text was updated successfully, but these errors were encountered:
No branches or pull requests
All of the following are equivalent, but the first is not documented:
(set! obj -field val)
(set! (. obj -field) val)
(set! (.-field obj) val)
Also, the second one is documented wrong as:
example using doto:
the arity is only documented here in a parser comment:
source from slack:
https://clojurians.slack.com/archives/C03S1KBA2/p1704890400974659
![CleanShot 2024-10-10 at 09 43 20@2x](https://private-user-images.githubusercontent.com/116838/375427122-1e522204-c493-4d61-8a29-b5d4d0136271.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTY1NTUsIm5iZiI6MTczOTI1NjI1NSwicGF0aCI6Ii8xMTY4MzgvMzc1NDI3MTIyLTFlNTIyMjA0LWM0OTMtNGQ2MS04YTI5LWI1ZDRkMDEzNjI3MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQwNjQ0MTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jN2I3YzYwZDE4OTQwNDkwYmExYjUxNzg0NzBiNDY3OTA2ZDlmYmRjZDJiMmE3OWRjNDE2YjEzNGM0NmQwZDU3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.pJNWOFWhlu_qFTsbMOAoJ0y8QqMh_FoO57KebCmAeoI)
The text was updated successfully, but these errors were encountered: