Skip to content

change dot on to accept pair of axis values instead of special axis type#118

Merged
marcelluethi merged 1 commit into
dimwit-dev:mainfrom
marcelluethi:dot-paired-value-level
Jun 23, 2026
Merged

change dot on to accept pair of axis values instead of special axis type#118
marcelluethi merged 1 commit into
dimwit-dev:mainfrom
marcelluethi:dot-paired-value-level

Conversation

@marcelluethi

Copy link
Copy Markdown
Contributor

Currently there is the special syntax

dot(Axis[A~B])(t1, t2)

The type A~B is hereby constructed at the type level. It seems more natural and consistent to just specify the axis on te value level

dot(Axis[A]->Axis[B](t1, t2)

In this way, the user does not need to learn a new concept but can just provide the normal axis values as for any other method in dimwit.

@marcelluethi marcelluethi requested a review from benikm91 June 23, 2026 04:05

@benikm91 benikm91 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice! I like your value-level "->" (that is, a axes tuple) suggestion way better than the current type level "~".

@marcelluethi marcelluethi merged commit 2ecfd2a into dimwit-dev:main Jun 23, 2026
1 check 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.

2 participants