|
|
|
|
|
by dj-wonk
4418 days ago
|
|
How? Please refute this claim: "Transients have very little, if anything, to do with types." Why would I claim this? Transients are about the internal nature of a function but have nothing to do with the return value or type. See "Transient data structures are a solution to this optimization problem that integrates with the Clojure model and provides the same thread safety guarantees you expect of Clojure." at http://clojure.org/transients |
|
From the page you linked:
"""
Capture return value, use for next call
Not persistent, so you can't hang onto interim values or alias
"""
From Rich Hickey himself: http://www.infoq.com/interviews/hickey-clojure-protocols
More context: http://c2.com/cgi/wiki?LinearTypes