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

helpers: more helpers #3

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

helpers: more helpers #3

wants to merge 8 commits into from

Conversation

Fang-
Copy link
Member

@Fang- Fang- commented Feb 6, 2025

9725793 does a light reorganization. I think splitting this up will be more sustainable as these sub-suites grow.

13e8fb6 provides nicer affordances for doing typechecking for Noun objects.
I tried briefly, but in hindsight it's obvious we can't do any isShape(myNoun, ['a', 'c', 'n']) (for ?=([@ ^ *] my-noun)) style shenanigans. So I think the isMap style checkers are the best we can do. Maybe if you get a sufficient amount of those into the stdlib you're covering most of your bases, anyway.
We should do a pass over the codebase to replace all instanceof code with these helpers, but that's out of scope for this PR.

06e2549 provides Noun-level set/map creation helpers. 2a9316f wraps those to provide "from non-Noun data" versions for the dejs part of the suite.

c43bc86 and 89a0fc2 are attempts at simplifying some of the logic we wrote for the verifier stuff earlier this week.

There's probably stuff that I missed, may tack more on later as I write helpers for verifier work, but this should be a good start.

@Fang- Fang- added the enhancement New feature or request label Feb 6, 2025
@Fang- Fang- requested a review from arthyn February 6, 2025 14:20
This one can at least process the full noun always.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant