write initial type signature notation proposal #5

Merged
schrottkatze merged 3 commits from :type-notation into main 2024-01-11 14:55:57 +00:00
Owner

this is just an initial proposal

this is just an initial proposal
multisamplednight was assigned by schrottkatze 2024-01-10 11:46:19 +00:00
multisamplednight was unassigned by schrottkatze 2024-01-10 11:46:39 +00:00
requested review from multisamplednight 2024-01-10 11:46:45 +00:00
@ -0,0 +1,23 @@
#import "../template.typ": conf
#show: doc => conf(
doc
)
Collaborator

Can be simplified.

-#show doc => conf(
-    doc
-)
+#show: conf
Can be simplified. ```diff -#show doc => conf( - doc -) +#show: conf ```
Collaborator

Also I suggest adding a title and subtitle once #2 is merged.

Also I suggest adding a title and subtitle once https://forge.katzen.cafe/katzen-cafe/iowo/pulls/2 is merged.
multisamplednight marked this conversation as resolved
@ -0,0 +6,4 @@
= Type/signature notation
Operator signature that takes two unnamed arbitrary numbers of the same type and returns another:
`Op<T: Num> [ T T ] -> T`
Collaborator

Should be full codeblocks.

-`Op<T: Num> [ T T ] -> T`
+```iowo
+Op<T: Num> [ T T ] -> T
+```
Should be full codeblocks. ```diff -`Op<T: Num> [ T T ] -> T` +```iowo +Op<T: Num> [ T T ] -> T +``` ```
multisamplednight left a comment
Collaborator

How would one write type signatures with multiple generic arguments?

Otherwise, LGTM.

How would one write type signatures with multiple generic arguments? Otherwise, LGTM.
Author
Owner

added the requested example!

added the requested example!
multisamplednight left a comment
Collaborator

LGTM! 🎉

LGTM! 🎉
Sign in to join this conversation.
No reviewers
No labels
proposal
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: katzen-cafe/iowo#5
No description provided.