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

~. sigdot Positive Assertion Rune #40

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

sigilante
Copy link
Contributor

@sigilante sigilante commented Mar 20, 2024

Proposes a ~: sigcol crash-with-message assertion rune.

@sigilante sigilante changed the title ~! sigzap ~: sigcol Mar 20, 2024
UIPS/UIP-0120.md Outdated Show resolved Hide resolved
UIPS/UIP-0120.md Outdated Show resolved Hide resolved
UIPS/UIP-0120.md Outdated Show resolved Hide resolved
UIPS/UIP-0120.md Outdated
but the `?:` variant seems to satisfy our need.

This involves two modest changes, one to the parser and another to the AST in
`/sys/hoon`. It does not collide with any known Hoon or atom literal syntax.
Copy link
Contributor

Choose a reason for hiding this comment

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

What about ~:(jam 'foo' 12) ? That could either mean "run (jam 'foo' 12), then with that as the subject, return constant ~" -- or it could mean "if jam is no, then print 'foo' and crash; else return 12".

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is resolvable, but it is a collision we'd need to make a decision about.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now ~. instead, which resolves to the empty @ta.

UIPS/UIP-0120.md Outdated Show resolved Hide resolved
UIPS/UIP-0120.md Outdated Show resolved Hide resolved
@sigilante sigilante dismissed eamsden’s stale review July 15, 2024 20:03

Completed via commits.

@sigilante sigilante changed the title ~: sigcol ~. sigdot Positive Assertion Rune Jul 15, 2024
@sigilante
Copy link
Contributor Author

sigilante commented Jul 15, 2024

Maybe !|(%msg) = ~| %msg !!

then ~. on top of that.

!_? !~'? !~? !^`?

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.

3 participants