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

UIP-0122 How to extract parent core axis from type #56

Open
belisarius222 opened this issue Apr 18, 2024 · 1 comment
Open

UIP-0122 How to extract parent core axis from type #56

belisarius222 opened this issue Apr 18, 2024 · 1 comment
Assignees

Comments

@belisarius222
Copy link
Contributor

I'm confused about something in the %wild hint proposal. How can a function discern from the type alone what the axis of the parent core is? In the ~% hint, that axis is specified as a subexpression, but I don't understand how that information should be encoded in the Hoon type for that core. @matthew-levan was able to get the core name extracted from the ~% hint and stuck into the p.garb.coil of the core type, but I don't know where the parent core axis could be applied to the core type -- maybe something with the seminoun?

cc @joemfb

@joemfb
Copy link
Member

joemfb commented Apr 19, 2024

The axis can be computed during the wild-constructing type traversal, with the usual (peg 2 axe) and (peg 3 axe) as appropriate. It should also be computed and checked during normal compilation.

@joemfb joemfb changed the title UIP-0121 How to extract parent core axis from type UIP-0122 How to extract parent core axis from type Apr 22, 2024
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

No branches or pull requests

3 participants