为什么 Datomic 属性以驼峰命名
Why are Datomic attributes are named in camelCase
我注意到在许多示例中,数据属性是使用驼峰命名法命名的(例如,startMonth
而不是 mbrainz 模式中的 start-month
:
https://github.com/Datomic/mbrainz-sample/blob/master/schema.edn#L78) 这肯定会更符合 Clojure 的习惯。为什么会这样?
我想到的唯一解释是,如果使用驼峰式大小写,例如Java。是这个原因吗?如果数据库是从 Clojure 中使用的,那么在 Datomic 中使用 kebab-case 有什么缺点吗?
与 Clojure 本身一样,命名约定(驼峰式、snake_case 或 kebab 式)由用户决定。
Datomic 的目标市场很大一部分是 Java 用户,many of the docs therefore use Java convention. Other parts of the docs and libraries like Tupelo Datomic 使用 Clojure 约定。
我注意到在许多示例中,数据属性是使用驼峰命名法命名的(例如,startMonth
而不是 mbrainz 模式中的 start-month
:
https://github.com/Datomic/mbrainz-sample/blob/master/schema.edn#L78) 这肯定会更符合 Clojure 的习惯。为什么会这样?
我想到的唯一解释是,如果使用驼峰式大小写,例如Java。是这个原因吗?如果数据库是从 Clojure 中使用的,那么在 Datomic 中使用 kebab-case 有什么缺点吗?
与 Clojure 本身一样,命名约定(驼峰式、snake_case 或 kebab 式)由用户决定。
Datomic 的目标市场很大一部分是 Java 用户,many of the docs therefore use Java convention. Other parts of the docs and libraries like Tupelo Datomic 使用 Clojure 约定。