Skip to content

Eliminate need for self in method calls in class definition#302

Merged
softmattertheory merged 7 commits intodevfrom
compiler
May 10, 2025
Merged

Eliminate need for self in method calls in class definition#302
softmattertheory merged 7 commits intodevfrom
compiler

Conversation

@softmattertheory
Copy link
Copy Markdown
Contributor

This PR eliminates the need for use of self in method calls in a class definition.

`
class A {
foo() {
boo() // Equivalent to self.boo()
}

boo() {
}
}
`

To ensure this works, the compiler identifies all valid method labels before compiling the class.

@softmattertheory softmattertheory merged commit c9a8429 into dev May 10, 2025
5 checks passed
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.

1 participant