Name the ontology: `eq`; `cmp`; `to_str`; `from_str`

Off the top of my head here are the things often derived in serde (Rust), dataclasses (Python), Kotlin Multiplatform (kotlinx.serialization), Haskell (Data.Eq): Comparison or simple equality Serialisation and deserialisation (e.g., Codable in Swift; serde in Rust; kotlinx.serialization.Serializable in Kotlin Multiplatform) What is the name of this ontology of names? - And is there an authorative list of them somewhere? - I'm implementing this in C—as a new C to C compiler written in C—and am trying to be exhaustive (currently have to_str, from_str, to_json, from_json, eq; and about to add deep_copy)…

May 8, 2025 - 23:24
 0

Off the top of my head here are the things often derived in serde (Rust), dataclasses (Python), Kotlin Multiplatform (kotlinx.serialization), Haskell (Data.Eq):

  • Comparison or simple equality
  • Serialisation and deserialisation (e.g., Codable in Swift; serde in Rust; kotlinx.serialization.Serializable in Kotlin Multiplatform)

What is the name of this ontology of names? - And is there an authorative list of them somewhere? - I'm implementing this in C—as a new C to C compiler written in C—and am trying to be exhaustive (currently have to_str, from_str, to_json, from_json, eq; and about to add deep_copy)…