Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class foo_bar should result in struct Foo_Bar #28

Open
iphydf opened this issue Jan 5, 2017 · 0 comments
Open

class foo_bar should result in struct Foo_Bar #28

iphydf opened this issue Jan 5, 2017 · 0 comments

Comments

@iphydf
Copy link
Member

iphydf commented Jan 5, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant