-
Notifications
You must be signed in to change notification settings - Fork 32
Typed modules #331
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
Typed modules #331
Conversation
RichDom2185
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, just some minor nits, but I've resolved the other comments I had and pushed them onto this branch, do take a look and double-check, thanks! I'm left with the one comment below:
RichDom2185
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
This is an implementation of Typed Modules based on this proof-of-concept and this proposal for the FYP titled "Improving Types in the Source Academy".
Previously, module members are mapped to the
anytype for all variables, function parameters and function return values. This PR enables module authors to define module variables, functions and types inline with TypeScript decorators, enabling the teaching team to teach types more effectively.Currently, only the rune and curve modules are "migrated" from "untyped" to "typed".