<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged web site</title>
<link>https://ask.clojure.org/index.php/tag/web%20site</link>
<description>Powered by Question2Answer</description>
<item>
<title>Add example to namespaced maps for :_/foo functionality</title>
<link>https://ask.clojure.org/index.php/14004/add-example-to-namespaced-maps-for-foo-functionality</link>
<description>&lt;p&gt;In the section for namespaced map syntax, the middle bullet point mentions that &lt;code&gt;:_/foo&lt;/code&gt; will treat the keyword as not having the map&#039;s current namespace, allowing for including un-namespaced keys in a namespaced map. The example given doesn&#039;t include this behavior, which has lead many (me, the entirety of the Discljord server, and I suspect many more in the wider clojure world) to not know about this behavior.&lt;/p&gt;
&lt;p&gt;I think it would be helpful to include it in the example, making the behavior explicit and obvious. Something like:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;For example, the following map literal with namespace syntax:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#:person{:_/species &quot;Human&quot;
         :first &quot;Han&quot;
         :last &quot;Solo&quot;
         :ship #:ship{:name &quot;Millennium Falcon&quot;
                      :model &quot;YT-1300f light freighter&quot;}}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;is read as:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{:species &quot;Human&quot;
 :person/first &quot;Han&quot;
 :person/last &quot;Solo&quot;
 :person/ship {:ship/name &quot;Millennium Falcon&quot;
               :ship/model &quot;YT-1300f light freighter&quot;}}
&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt;I&#039;ve signed the CA and can open an PR if it&#039;s acceptable.&lt;/p&gt;
</description>
<category>Docs</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/14004/add-example-to-namespaced-maps-for-foo-functionality</guid>
<pubDate>Wed, 03 Jul 2024 01:17:02 +0000</pubDate>
</item>
<item>
<title>Add example of clojure -Sdeps to Deps and CLI guide or reference</title>
<link>https://ask.clojure.org/index.php/12281/add-example-of-clojure-sdeps-to-deps-and-cli-guide-reference</link>
<description>&lt;p&gt;Testing libraries before adding them to a &lt;code&gt;deps.edn&lt;/code&gt; file by using &lt;code&gt;-Sdeps &#039;{...}&#039;&lt;/code&gt; is a frequent recommendation, but it&#039;s only mentioned in a single line in the &lt;a rel=&quot;nofollow&quot; href=&quot;https://clojure.org/reference/deps_and_cli#_deps_edn_sources&quot;&gt;Reference page&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I think it would be helpful if it (and the other flags) had examples with more detail about how they&#039;re used and why. Maybe something like:&lt;/p&gt;
&lt;hr&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;-Sdeps&lt;/strong&gt; - pass the config data on the command line&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For example, instead of creating a new &lt;code&gt;deps.edn&lt;/code&gt; file to experiment with a new library, you can use &lt;code&gt;-Sdeps&lt;/code&gt; to pass in the &lt;code&gt;:deps&lt;/code&gt; map to &lt;code&gt;clojure&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ clojure -Sdeps &#039;{:deps {org.clojure/core.match {:mvn/version &quot;1.0.0&quot;}}}&#039;
Clojure 1.11.1
user=&amp;gt; (require &#039;[clojure.core.match :refer [match]])
nil
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Docs</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/12281/add-example-of-clojure-sdeps-to-deps-and-cli-guide-reference</guid>
<pubDate>Tue, 04 Oct 2022 18:38:54 +0000</pubDate>
</item>
<item>
<title>Typo in Getting Started: /etc/man_dev.conf ➡ /etc/man_db.conf</title>
<link>https://ask.clojure.org/index.php/10132/typo-in-getting-started-etc-mandev-conf-etc-mandb-conf</link>
<description>&lt;p&gt;The &lt;a rel=&quot;nofollow&quot; href=&quot;https://clojure.org/guides/getting_started&quot;&gt;Getting Started&lt;/a&gt; instructions for Linux should refer to &lt;code&gt;/etc/man_db.conf&lt;/code&gt; instead of &lt;code&gt;/etc/man_dev.conf&lt;/code&gt;.&lt;/p&gt;
</description>
<category>Docs</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/10132/typo-in-getting-started-etc-mandev-conf-etc-mandb-conf</guid>
<pubDate>Mon, 01 Feb 2021 02:57:27 +0000</pubDate>
</item>
</channel>
</rss>