Skip to content

Defclass macro#2126

Draft
Brent-Hickey wants to merge 5 commits into
open-goal:masterfrom
Brent-Hickey:defclass-macro-snowball
Draft

Defclass macro#2126
Brent-Hickey wants to merge 5 commits into
open-goal:masterfrom
Brent-Hickey:defclass-macro-snowball

Conversation

@Brent-Hickey
Copy link
Copy Markdown
Contributor

Supports organizing a type in one place and makes it easier to make new types by

  • predeclaring methods (with implicit self and return types in methods) and states
  • saving some boilerplate on declaring behaviors/states
  • (optional) nesting dependent types for hierarchy

Tested it on wobble and snow-ball and tried to refactor them

For example, can put all of snow-ball.gc into the snow-ball class which is nice to navigate with folding:
image

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants