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

Typed Composition Diagrams #59

Open
lukem12345 opened this issue Jul 3, 2024 · 0 comments
Open

Typed Composition Diagrams #59

lukem12345 opened this issue Jul 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lukem12345
Copy link
Member

Currently, we compose Decapodes together using untyped wiring diagrams. The lack of types allows for generic expressions that are quick to write. Further, type-checking is enforced when oapply is called. i.e. An error is thrown when trying to identify a 0form with a 1form in oapply.

However, such errors occur rather late in the workflow. They could instead occur at the time of composition diagram construction, instead of application. We would gain the myriad benefits that generally come from using types, even without imbuing the type checking with any special rules from the DEC.

So, we should add support for typed wiring diagrams, while maintaining our current level of support for the untyped case.

Special attention must be paid to the infer, Constant, and Parameter types. The PR which closes this issue must decide whether to allow identifying Constant with a 0Form and so on at the composition level. Or whether to allow tagging variables as Parameter at the composition diagram level whatsoever, etc.

@lukem12345 lukem12345 added the enhancement New feature or request label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant