Phreak87 / LeptonicaSharp

Full featured wrapper for leptonica 1.77.0
Other
8 stars 5 forks source link

Get rid of all the underscores #60

Closed fdncred closed 5 years ago

fdncred commented 5 years ago

Totally don't get naming all the functions wrong with a preceding underscore. This is exactly why Visual Studio has filters on auto-completion. properties fields methods extensions

Phreak87 commented 5 years ago

Underscores can be removed. Function names should without the class name. Think about sarray.sarrayaddstring or pixaclass.pixaadd. Only use.add or .addstring is nice with all parameters predefined. If you want to use the full function names _all. Function Is always there.

fdncred commented 5 years ago

In general, I'm satisfied if every function name matches the exact function name in Leptonica. If everything is in the All namespace, that's fine too, because I can "using static Leptonica.All" and have visibility to every function just like I would in C/C++.

Phreak87 commented 5 years ago

My internal view is [Class].[Function] (With Defaults, optionals moved to the end and source removed by the own Class). [_All].[Function] (With Defaults, Optionals if the are on the end) [Native].[Function] (Use Pointers instead of classes, All parameters)

Phreak87 commented 5 years ago

This makes it possible to write own code faster with [class].[function] and convert the C-Examples to LeptonicaSharp with the _all Class and all Parameters including the own class.

Phreak87 commented 5 years ago

removed underscores.