Home

2 comments

PaulHoule9 months ago
You can put arbitrary metadata on functions, classes and other things that are basically objects in in Python. If you write<p><pre><code> def somefunction(x): ... body ... </code></pre> you can later write<p><pre><code> somefunction.specialmetadata = &quot;a value&quot; </code></pre> so what you can do is fairly unlimited. You can&#x27;t write, however<p><pre><code> x = 4 x.metavalue = 3 </code></pre> as the int isn&#x27;t a general object. Even if you did the metadata would apply to the value (the &#x27;4&#x27;) and not the variable (the &#x27;x&#x27;)
thesuperbigfrog9 months ago
Clojure supports metadata:<p><a href="https:&#x2F;&#x2F;clojure.org&#x2F;reference&#x2F;metadata" rel="nofollow">https:&#x2F;&#x2F;clojure.org&#x2F;reference&#x2F;metadata</a>