In this column, the data types are named by their internal validation function for clojure.spec
. As these are relatively arbitratily named, I would suggest changing them out for something 1) used more widely and 2) further abstracted 3) reveals less about inner implementation.
One such solution would be to use the Typescript standard, as that is becoming a very widely used type system.
the changes would look like this
inner implementation |
typed reference |
as multiple |
uuid-string |
uuid |
uuid[] |
strings<->uuids |
uuid[] |
uuid[] |
single-string |
string |
string[] |
cell-list |
string[] |
string[] |
YN<->bool |
boolean |
boolean[] |
string-date<->timestamp |
timestamp |
timestamp[] |
status |
"3" \ "2" \ "1" |
Array<"3" \ "2" \ "1"> |
optional values get added question marks. string?
, string[]?
, etc