Cleaned it up a bit:
(defmacro ? [object value]
"Get an object value - same as object.value; in C# but immutable"
`(get ~object (keyword (str '~value))))
(defmacro ! [object method & args]
"Call an object method - same as object.method(args); in C# but
immutable"
`((get ~object (keyword (str '~method))) ~object ~...@args))
(defmacro != [object name value]
"Set an object value - same as object.name = value; in C# but
immutable"
`(assoc ~object (keyword (str '~name)) ~value))
--
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