Re: Solving the symbol-vs-number conundrum
Lassi Kortela 10 Aug 2020 06:48 UTC
> I see the problem now, thanks. But I hate your solution. We may have
> to go with 'code and 'name after all, where 'code can be an exact
> integer or a symbol.
Why do you hate it? Do you have other examples of codes that are
alphanumeric jumbles?
'name is vague, it tends to make me wonder whether it's an identifier
kind of name (symbol-with-dashes) or a title kind of name (human
readable string with capitalization). 'id and 'title are unambiguous in
that respect. 'message is more appropriate for statuses than 'title
(unless the error message is a whole essay that needs its own title).
For statuses 'code and 'mnemonic would be a compromise I'd be happy
with. Though I'd still like to hear why you oppose 'sqlstate.