This repository was archived by the owner on Aug 14, 2019. It is now read-only.
More useful +diff and +sigh in gall apps #1179
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Suppose
my-mark
has typemy-type
.In gall apps,
+diff-my-mark
handles all%diff
cards with markmy-mark
and takes an argument of type[wire my-type]
.However,
+diff
handles all%diff
cards not otherwise handled, and takes an argument of type[wire cage]
. Acage
includesvase
, which is very unhelpful (so it was never used).This is obviously wrong. This PR makes it so
+diff
takes an argument of type[wire %my-mark my-type]
. This gives us a well-typed value, so we can actually do something with this.The same applies to
+sigh
, so I changed that too.The motivation for this is in the
philip/trad
branch, where I would like to be able to handle all subscription results in a single arm because the library that creates this arm doesn't know until compile time what are the possible subscription results (it gets the types via|* mold
parameterization). Seearvo/lib/tapp.hoon
Lines 149 to 159 in 40c4ea4
in-peer-data
arvo/lib/tapp.hoon
Lines 3 to 8 in 40c4ea4