Skip to content

Branche rename pour discuter de l'amélioration de l'API#1

Open
ghost wants to merge 11 commits intomasterfrom
unknown repository
Open

Branche rename pour discuter de l'amélioration de l'API#1
ghost wants to merge 11 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Feb 23, 2011

Salut,

Je teste Github et j'ai pushé une branche rename où je mets l'API que j'aimerais pour OF.

C'est surtout virer le préfixe « of_ » et simplifier l'usage jusqu'à ce que les formules s'écrivent naturellement.

Ne merge pas cette branche, on ne fait qu'en discuter pour l'instant.

Je me demande même si on ne devrait pas séparer charte et openformula en deux projets distincts.

Hervé

Hervé Cauwelier added 11 commits February 22, 2011 18:18
It was a bad habit from lpOD.

- basics is plural not to induce the BASIC language
- class become objects to avoid the keyword
- maths is plural not to conflict with stdlib's math
uppercase them not to conflict with Python
Uppercase them not to conflict with stdlib's math members, int, etc.
Follow the uppercase rule for now.
"Formula" is capitalized since this is a common variable name. Maybe
"of" or "OF" would be better.

Others are lowercase for now.
>>> from openformula import Formula, MIN
Whether the arguments are hard-coded strings or one of our objects.

This allows our objects to behave as a string transparenly, while adding
syntax and consistency checks.

See "duck typing".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants