Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Construct and read methods should be classmethods #342

Open
calum-chamberlain opened this issue Oct 30, 2019 · 0 comments
Open

Construct and read methods should be classmethods #342

calum-chamberlain opened this issue Oct 30, 2019 · 0 comments
Assignees
Milestone

Comments

@calum-chamberlain
Copy link
Member

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Creating Tribes and Templates should not require an existing class. The current implementation is clumsy: to create a Tribe you would run:

Tribe().construct(...)

Describe the solution you'd like
A clear and concise description of what you want to happen.

Change .read() and .construct() to @classmethods that allow the following syntax:

Tribe.construct(...)

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Keeping it the way it is is pretty ugly...

Additional context
Add any other context about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant