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

Naming convention for C-identifiers? (Style guide development) #55

Open
Free-Pascal-meets-SDL-Website opened this issue May 25, 2022 · 0 comments
Labels
discussion Discuss an idea/feature/PR/issue...

Comments

@Free-Pascal-meets-SDL-Website
Copy link
Collaborator

As raised in a pending PR #53 :

We need to decide for a naming convention of the C-identifiers from ctypes unit.

Naming conventions

1) ctypes unit
All lower-case, hence a 16 bit unsigned integer is cuint16.

2) SDL2-for-Pascal (this project)
All lower-case

Pro:

  • consistent with ctypes unit
  • consistent within the whole project (for now)

Con:

  • ugly/low readability

Some question which come to mind to be dicussed alongside:

  • What style to adopt exactly? ("Specification")
  • What are the benefits of changing the style? What are the pros/cons?
  • Does the effort pay out?
  • Should we allow several styles? Should we restrict to a certain style at all?

Best regards
Matthias

@Free-Pascal-meets-SDL-Website Free-Pascal-meets-SDL-Website added the discussion Discuss an idea/feature/PR/issue... label Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discuss an idea/feature/PR/issue...
Projects
None yet
Development

No branches or pull requests

1 participant