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

Doccords for specs/types #5768

Closed
drbeefsupreme opened this issue May 24, 2022 · 3 comments
Closed

Doccords for specs/types #5768

drbeefsupreme opened this issue May 24, 2022 · 3 comments
Assignees

Comments

@drbeefsupreme
Copy link
Contributor

drbeefsupreme commented May 24, 2022

According to a conversation with @joemfb, I'll want another $hoon tag for spec doccords separate from the %note hoon currently used to wrap hoons. The Hoon 143K iteration of doccords called this tag %halo.

I have an OK idea of what I need to do to make this change, but am not yet sure how it should be prioritized relative to other TODO tasks.

@drbeefsupreme
Copy link
Contributor Author

This is turning out to be suspiciously easier than I expected. I thought I'd have to add another hoon tag and wire it up inside the compiler, but so far using the %note tag seems to be working fine. Trying to figure out how this might create other issues down the road.

@drbeefsupreme
Copy link
Contributor Author

@joemfb patiently explained why we should want another hoon and spec tag for specs. If we can get something working quickly, it will go in the first release, otherwise I'll see if there will be any real issues with using the current system just to annotate the +$ arms themselves.

@drbeefsupreme
Copy link
Contributor Author

@joemfb paired with me to get this working on Wednesday, and it works great. Ex. if you have

+$  tape  (list @tD)     :<  utf8 string as a list

then the type of *tape contains the docs utf8 string as a list. Now I just need to figure out how to print this.

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

1 participant