This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-28
Channels
- # admin-announcements (1)
- # aws (2)
- # beginners (21)
- # boot (28)
- # braid-chat (1)
- # cider (51)
- # cljs-edn (7)
- # cljsjs (35)
- # cljsrn (2)
- # clojure (85)
- # clojure-chicago (7)
- # clojure-czech (1)
- # clojure-gamedev (3)
- # clojure-poland (2)
- # clojure-russia (80)
- # clojure-sanfrancisco (1)
- # clojure-uk (5)
- # clojurebridge (9)
- # clojurescript (68)
- # cursive (29)
- # datomic (23)
- # emacs (2)
- # hoplon (94)
- # jobs-discuss (15)
- # juxt (2)
- # liberator (2)
- # luminus (16)
- # mount (12)
- # off-topic (7)
- # om (57)
- # onyx (58)
- # proton (10)
- # re-frame (9)
- # reagent (38)
- # remote-jobs (2)
- # rum (12)
- # untangled (136)
off-topic bikeshed question: is there an official name for a "create-or-get" function ? how would you name it, just create-or-get
to keep it simple and clear ?
@lmergen: Just a guess but I think the name would more semantically correct the other way around. Also I haven't done much python for a while now but django has this get_or_create method that I found appropriate: "Returns a tuple of (object, created), where object is the retrieved or created object and created is a boolean specifying whether a new object was created." https://docs.djangoproject.com/en/dev/ref/models/querysets/#get-or-create