PascalGameDevelopment/SDL2-for-Pascal

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

Free-Pascal-meets-SDL-Website opened this issue · 0 comments

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