-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
We want consistent naming of class members that don’t take any arguments. The goal is to clearly distinguish between cheap, read-only attributes and potentially expensive operations.
Naming Convention:
Properties
- Definition: Cheap, read-only attributes.
- Python: Use
@property
. - C++: Use noun-style naming.
- Example:
- Python:
.size
- C++:
.size()
- Python:
- Example:
Methods
- Definition: Potentially expensive operations.
- Naming rule: Start with a leading verb.
- Both Python & C++: Use regular methods.
- Example:
- Python:
.get_table_view()
- C++:
.get_table_view()
- Python:
- Example:
TODO:
- Rename C++ methods.
- Rename Python methods.
- Write a
DEVELOPER_GUIDE.md
.
Metadata
Metadata
Assignees
Labels
No labels