Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changed #^ to ^ and ^ to meta in several places based on feedback from

Steve Miner
  • Loading branch information...
commit 6ee885abf8792123588c0335852c3ee913e77053 1 parent 9062cf2
@mvolkmann authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 article.html
View
12 article.html
@@ -851,7 +851,7 @@
add metadata to a symbol or collection
</td>
<td colspan="1" rowspan="1">
- <code>#^{<i>key-value-pairs</i>} <i>object</i></code><br />
+ <code>^{<i>key-value-pairs</i>} <i>object</i></code><br />
processed at read-time
</td>
<td colspan="1" rowspan="1">
@@ -864,7 +864,7 @@
get metadata map from a symbol or collection
</td>
<td colspan="1" rowspan="1">
- <code>^<i>object</i></code>
+ <code>meta<i>object</i></code>
</td>
<td colspan="1" rowspan="1">
<code>(meta <i>object</i>)</code>
@@ -3824,7 +3824,7 @@
(println (== card1 card2)) ; same identity? -&gt; false
(println (= card1 card2)) ; same value? -&gt; true
-(def card2 #^{:bent true} card2) ; adds metadata at read-time
+(def card2 ^{:bent true} card2) ; adds metadata at read-time
(def card2 (with-meta card2 {:bent true})) ; adds metadata at run-time
(println (meta card1)) ; -&gt; nil
(println (meta card2)) ; -&gt; {:bent true}
@@ -3875,7 +3875,7 @@
Functions and macros, both represented by a <code>Var</code> object,
have associated metadata.
For example, enter the following in a REPL:
- <code>(meta (var reverse))</code> or <code>^#'reverse</code>.
+ <code>(meta (var reverse))</code>.
The output will be similar to the following, but on a single line:
</p>
<div class="code">
@@ -5243,7 +5243,7 @@
<pre xml:space="preserve">
(ns <i>namespace</i>
(:gen-class
- :methods [#^{:static true} [<i>function-name</i> [<i>param-types</i>] <i>return-type</i>]]))
+ :methods [^{:static true} [<i>function-name</i> [<i>param-types</i>] <i>return-type</i>]]))
</pre>
</div>
<p>
@@ -5255,7 +5255,7 @@
<pre xml:space="preserve">
(ns com.ociweb.clj.Demo
(:gen-class
- :methods [#^{:static true} [getMessage [String] String]]))
+ :methods [^{:static true} [getMessage [String] String]]))
# Note the hyphen at the beginning of the function name!
(defn -getMessage [name]
Please sign in to comment.
Something went wrong with that request. Please try again.