Solving the symbol-vs-number conundrum Lassi Kortela (09 Aug 2020 21:29 UTC)
Re: Solving the symbol-vs-number conundrum John Cowan (10 Aug 2020 01:02 UTC)
Re: Solving the symbol-vs-number conundrum Lassi Kortela (10 Aug 2020 06:48 UTC)
SQLSTATE Lassi Kortela (10 Aug 2020 07:03 UTC)
Any alphanumeric errors anywhere? Lassi Kortela (10 Aug 2020 07:11 UTC)
Re: Any alphanumeric errors anywhere? Lassi Kortela (10 Aug 2020 07:15 UTC)
Re: Any alphanumeric errors anywhere? Göran Weinholt (10 Aug 2020 07:44 UTC)
VMS errors Lassi Kortela (10 Aug 2020 08:29 UTC)
Re: VMS errors John Cowan (11 Aug 2020 02:44 UTC)
Re: Solving the symbol-vs-number conundrum John Cowan (10 Aug 2020 20:36 UTC)
Re: Solving the symbol-vs-number conundrum Lassi Kortela (10 Aug 2020 21:30 UTC)
Re: Solving the symbol-vs-number conundrum John Cowan (11 Aug 2020 03:48 UTC)
Re: Solving the symbol-vs-number conundrum Lassi Kortela (11 Aug 2020 06:50 UTC)
Re: Solving the symbol-vs-number conundrum hga@xxxxxx (12 Aug 2020 12:01 UTC)
Re: Solving the symbol-vs-number conundrum John Cowan (12 Aug 2020 12:48 UTC)
Semantic property names and static vs dynamic types Lassi Kortela (14 Aug 2020 15:54 UTC)
Re: Semantic property names and static vs dynamic types John Cowan (14 Aug 2020 22:06 UTC)
Re: Solving the symbol-vs-number conundrum hga@xxxxxx (12 Aug 2020 12:06 UTC)
Re: Solving the symbol-vs-number conundrum Lassi Kortela (14 Aug 2020 15:57 UTC)
Re: Solving the symbol-vs-number conundrum hga@xxxxxx (15 Aug 2020 16:26 UTC)
Re: Solving the symbol-vs-number conundrum hga@xxxxxx (10 Aug 2020 22:11 UTC)

Re: Solving the symbol-vs-number conundrum Lassi Kortela 10 Aug 2020 21:30 UTC

> Not at the moment, but my memory is telling me that I *have* seen such
> things before.

I too could have sworn that I'd come across alphanumeric codes several
times. But when trying to remember and search for specific examples I
couldn't come up with any.

Maybe alphanumerics are more common in fields other than computing, e.g.
various kinds of catalogs, and our brains mix up those domains.
Computers make it easy to deal with integers so we usually use those.
And where letters can be used, it's usually as easy to spell out
complete words as it is to use cryptic codes.

> Anyway, SQLSTATEs are (a) part of the SQL standards,
> although private-use extensions are allowed, and (b) can be in a
> one-to-many relationship with db-specific numbers and ids.  So I'm okay
> with them now as a string-valued key specific to DBs.

Cool! Thanks for listening to the arguments.

> There is a list at <https://en.wikipedia.org/wiki/SQLSTATE>.

Yeah, those are the standard ones; specific databases can add their own.

The table on that Wikipedia page has several fields. Should we be
prepared with properties for all of them:

sqlstate
category
class-code
class-title
subclass-code
Subclass-title

>     'name is vague
>
> Good point.  +1 for 'id.

'id is also vague since we have a numeric and a mnemonic; both are a
kind of identifiers. In RnRS parlance, identifier ~= symbol, but this is
not universal. Generally an identifier is any magic datum that
identifies something; a number fits the bill.

Hence I'd still prefer 'number or 'code for the number and 'memonic for
the symbol.

SQLSTATE class codes can contain letters in addition to digits, so they
need to be 'class-code instead of 'class-number. Perhaps the generic
error number property can be 'code for symmetry with 'class-code.

How bad is 'mnemonic? It may be slightly torturous to spell for
non-native speakers, but probably palatable.

>     'message is more appropriate for statuses than 'title
>     (unless the error message is a whole essay that needs its own title).
>
> I would hope not!

Some databases' documentation says they can return really elaborate
errors, complete with troubleshooting tips and everything. But maybe the
thing they send as 'message is close enough to a title :)