You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In apidsl, the underscore is used as namespace separator, but is also permitted inside identifiers. Class names are capitalised, but the toxcore naming standard is "underscore-separated capitalised words" for struct names. Apidsl should implement this naming standard.
Alternatively, and possibly this is a better option, we give the user the freedom of how to spell their struct name, and lowercase it for the namespace name (in function names). This is somewhat necessary for what is currently called class toxAV (struct ToxAV), which, if spelled class tox_av would be struct Tox_Av, which may not be desirable. If we want the naming standard to be "abbreviations are all-caps" instead of the Java convention of "abbreviations are words", it should be class Tox_AV and struct Tox_AV with function prefix tox_av_. The same would go for class Tox_QNL, which would currently be class tox_QNL which is ugly, or class tox_qnl which would result in struct Tox_Qnl.
The text was updated successfully, but these errors were encountered:
In apidsl, the underscore is used as namespace separator, but is also permitted inside identifiers. Class names are capitalised, but the toxcore naming standard is "underscore-separated capitalised words" for struct names. Apidsl should implement this naming standard.
Alternatively, and possibly this is a better option, we give the user the freedom of how to spell their struct name, and lowercase it for the namespace name (in function names). This is somewhat necessary for what is currently called
class toxAV
(struct ToxAV
), which, if spelledclass tox_av
would bestruct Tox_Av
, which may not be desirable. If we want the naming standard to be "abbreviations are all-caps" instead of the Java convention of "abbreviations are words", it should beclass Tox_AV
andstruct Tox_AV
with function prefixtox_av_
. The same would go forclass Tox_QNL
, which would currently beclass tox_QNL
which is ugly, orclass tox_qnl
which would result instruct Tox_Qnl
.The text was updated successfully, but these errors were encountered: