Skip to content

Support creating methods nicely in generated classes#28

Merged
msullivan merged 4 commits intomainfrom
func-syntax
Jan 12, 2026
Merged

Support creating methods nicely in generated classes#28
msullivan merged 4 commits intomainfrom
func-syntax

Conversation

@msullivan
Copy link
Collaborator

To do this we convert our Callable+Param types into methods. The main
reason for this is because it seems to be the expected thing, though
maybe we'd be better off keeping them as methods?

This lets us implement flatten_type fully in terms of
NewProtocol+Members, no special work needed, though!

I also added GenericCallable, since pulling that off required being
able to represent type params. I am suuuuper unsure about that one,
though.

@msullivan msullivan requested a review from dnwpark January 10, 2026 01:14
Base automatically changed from eval-classes-what-to-do to main January 12, 2026 16:54
Copy link
Contributor

@dnwpark dnwpark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@msullivan msullivan merged commit 585191c into main Jan 12, 2026
1 check passed
@msullivan msullivan deleted the func-syntax branch January 12, 2026 23:07
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.

2 participants