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

Add new keyword to create new class instances #117

Open
kaidesu opened this issue Oct 8, 2023 · 0 comments
Open

Add new keyword to create new class instances #117

kaidesu opened this issue Oct 8, 2023 · 0 comments
Labels
change Change an existing feature

Comments

@kaidesu
Copy link
Member

kaidesu commented Oct 8, 2023

Instead of newing up class instances based off a method:

flight = Flight.new()

I think I'd like to explore how most other language new up instances through a dedicated new keyword:

flight = new Flight()

Reads easier when parsing code and is already intuitive for most developers coming in with past experience.

@kaidesu kaidesu added the change Change an existing feature label Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change Change an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant