Yes, reusing the names core namespace functions is not uncommon. There are only so many useful verbs, and namespaces exist so we can use the same function name for different tasks.
Typically, your ns declaration will look something like: (ns foo.bar (:refer-clojure :exclude [get]) (:require '[clojure.core :as core])) Which will allow you to use the core version of "get" as "core/get". There are caveats to doing this. You first need to be careful if you're going to shadow a common function like "get". In the past I've made the mistake of overriding a common function, then trying to use the core function later without namespacing it. It can lead to unintuitive errors. You also need to be aware that people won't be able to :refer your shadowed functions. Typically they'll need to write something like: (ns foo.bar (:require [foo.database :as db])) (defn get-blah [db] (db/get db "blah")) Generally, :refer should be used sparingly anyway, so this is often less of an issue. - James On 16 June 2015 at 03:40, Dru Sellers <d...@drusellers.com> wrote: > I am creating a protocol for my entity management and I was going to use > the name 'find' but that is a well known core lib function as is 'get'. I > was curious if it is common practice to still use those methods or if the > collective group have settled on other names for the common 'crud' type > methods > > I'm building something akin to: > > (defprotocol Database > (get [id] "Get the row at id") > (find [query] "find the row") > (delete [id] "etc") > (save [data] "etc") > ;etc > ) > > > Thanks! > > -d > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.