Skip to content

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

Open
@Free-Pascal-meets-SDL-Website

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionDiscuss an idea/feature/PR/issue...

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions