This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-20
Channels
- # aleph (78)
- # announcements (13)
- # architecture (8)
- # aws (3)
- # babashka (110)
- # beginners (38)
- # calva (2)
- # clerk (1)
- # clojure (118)
- # clojure-austin (3)
- # clojure-dev (8)
- # clojure-europe (50)
- # clojure-france (2)
- # clojure-nl (1)
- # clojure-portugal (1)
- # clojure-uk (3)
- # clojurescript (101)
- # clr (10)
- # data-science (15)
- # datascript (5)
- # datomic (3)
- # events (1)
- # fulcro (22)
- # graalvm (2)
- # gratitude (3)
- # guix (1)
- # honeysql (1)
- # hyperfiddle (72)
- # jobs (3)
- # lsp (23)
- # malli (18)
- # membrane (29)
- # obb (1)
- # releases (1)
- # ring-swagger (2)
- # shadow-cljs (8)
- # squint (113)
- # xtdb (9)
Jo what is a good way to have clojure (like) references (atoms) and immutable datastructures in a small dotnet project? I am thinking fsharp or clojure clr? I am thinking about copying the clojiure clr code currently
you could use ClojureCLR as a dependency. You'd need to use either the clojure functions or figure out all the internal interfaces to use the immutable collections. If you know F#, of course, that would be quick. If you are coming from C#, for the immutable collections, there is the System.Collections.Immutable namespace. Do you need something that isn't available there?
I was going to suggest that if you needed Atom. Did you exchange the whole IFn interface piece needed for swap and watchers for a simple use of delegates?
ah yea I changed it to Func<T, T> (also making everything generic instead of object
)
(that seemed less surprising for a chsarp code base)
forgot to link the code https://github.com/benjamin-asdf/ClojureAtomRefClr