Let's do some bike-shedding of OSSL_FN rename
As it was suggested before the OSSL_FN name for the fixed size bignums is confusing as fn is usually used as a shortcut for function (even within the OpenSSL source already). Here is the PR that renames it to OSSL_FSN but there are some objections that the name is ugly. https://github.com/openssl/openssl/pull/33882
If we are going for a rename, I'd rather go with 3 or 4. The original "type name" was FIXNUM (see the design doc, which still contains traces).
OSSL_FXN would be my preference. Maybe its because I'm used to calling it the FIXNUM solution - so FXN seems more natural to me. With OSSL_FSN, feels less natural to me but is okay. I'd prefer to avoid a longer name OSSL_FIXNUM.
Mechanically, OSSL_FSN → OSSL_FXN (with diverse casing preserved) seems like a fairly easy sed task in that PR
My vote would be for 2. or 4. with slight preference towards 2, BTW.
So far, option 4 seems to be where we converge the most. Just sayin'
I like 3 ("FIXNUN") spelled out, it's only 3 more letters than FXN, which would be my second choice (4).
We definitely need a three-letter-max shortcut for things like file name, function name pre/postfixes. And, IMO for searching it is better to not have two different forms.
(4), then (3). I don't like (2)
It clearly should be OSSL_FUN !
(j/k OSSL_FXN works for me)
By analogy with BIGNUM, the pair FIXNUM/fxn (without the OSSL_ prefix) seems quite logical.
What was the reason for renaming FIXNUM to OSSL_FN?
Because the identifier might get public eventually it cannot be just FIXNUM according to our policy and OSSL_FIXNUM is unnecessarily long.
@tomas, that policy has disappeared. I can only see the lower case ossl_ mentioned for non-static internal, both in current STYLE.md in master and the older coding-style.md in technical-policies
The shorter the version, the better, so I can add another short name XN (fiXNum).
OSSL_FXN works for me, same as FN. I don't read capital FN as function.
I think we are now somehow converging to the option 4.
So what would be your preference?
keep the old name
rename to OSSL_FSN
OSSL_FIXNUM + fxn as a shortcut
OSSL_FXN everywhere
something else?