Note about style

Information about naming constructors and destructors
master
Nakidai 2024-09-19 11:54:51 +03:00
parent 56d291d974
commit 5ff234116e
No known key found for this signature in database
GPG Key ID: C6BF6082F42307C0
1 changed files with 15 additions and 1 deletions

View File

@ -172,7 +172,9 @@ next name).
Namespaces and classes Namespaces and classes
are named in PascalCase. are named in PascalCase.
For example: For example:
.Dl Namespace_Class_init .Dl Namespace_Class_doStuff
.
.Pp
I may name I may name
Functions related to main Functions related to main
(needed for starting the main program) (needed for starting the main program)
@ -186,6 +188,18 @@ are named in pascalCase:
.Dl Namespace_Class_someMethod .Dl Namespace_Class_someMethod
. .
.Pp .Pp
Constructors are named
as the class' name:
.Dl Namespace_Class
.
.Pp
Destructors are named
as constructos
but with an anuderscore
at the end:
.Dl Namespace_Class_
.
.Pp
Types, Types,
structs, structs,
enums, enums,