Skip to content

Binary operations between related types. - #47

Closed
benikm91 wants to merge 2 commits into
dimwit-dev:mainfrom
benikm91:tensor-covariance
Closed

Binary operations between related types.#47
benikm91 wants to merge 2 commits into
dimwit-dev:mainfrom
benikm91:tensor-covariance

Conversation

@benikm91

@benikm91 benikm91 commented Jan 19, 2026

Copy link
Copy Markdown
Collaborator

Improvement suggested in #44

Rewrite binary-operations to allow application between related types with automatic fallback to shared parent type as result. Operations: +, -, *, /, where, maximum, minimum

Excluded all binary-comparison-operations. Comparision operations should be more strict.

@benikm91
benikm91 requested a review from marcelluethi January 19, 2026 21:02
@benikm91

Copy link
Copy Markdown
Collaborator Author

Decision that this may make things harder as operation between child objects may be an error. This PR would lead to no type error is such cases.

@benikm91 benikm91 closed this Jan 20, 2026
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