This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-28
Channels
- # beginners (67)
- # boot (31)
- # cider (1)
- # cljs-dev (12)
- # cljsjs (1)
- # cljsrn (23)
- # clojure (86)
- # clojure-russia (2)
- # clojure-spec (6)
- # clojure-uk (12)
- # clojurescript (171)
- # core-async (2)
- # core-matrix (1)
- # cursive (3)
- # events (1)
- # lumo (6)
- # off-topic (118)
- # om (51)
- # onyx (16)
- # perun (3)
- # re-frame (14)
- # reagent (19)
- # uncomplicate (5)
- # unrepl (6)
- # untangled (6)
I recall being amused that Rich argued against version numbers, and then suggested hello2
as a name
@glenjamin Inspired by speculation. Because the return value changes, I don’t think there’s a way of doing it without creating a new function or namespace.
It would be nice if we could version namespaces in Clojure
(require 'hiccup.core :version 2.0)
Though a lot of versioning is just accreting functionality. It would only matter for incompatibilities.
There might be other things added to hiccup2.core/html
that are nothing to do with safety, though perhaps they’d be features added both to hiccup.core
and hiccup2.core
.
hiccup.safe
is a possibility.
https://www.arrdem.com/2016/02/22/clojarr_-_a_friendly_clojure_fork/ > What if we gave Namespaces and Vars version numbers? When a Namespace is re-defined (the ns form is evaluated) then the Namespace's version is incremented. When a def is evaluated, the version of the Var bound by the def is set to be the version of the Namespace in which that Var exists.
That sounds more like version numbers specific to the running JVM.