Skip to content

improve heuristic for detecting if curried - #36

Merged
vic merged 2 commits into
denful:mainfrom
musjj:curried-check
Mar 1, 2026
Merged

improve heuristic for detecting if curried#36
vic merged 2 commits into
denful:mainfrom
musjj:curried-check

Conversation

@musjj

@musjj musjj commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

This adds a check that ensures a curried function is either a native function or an attribute set that only has __functor and/or __functionArgs attributes.

I've tested it by running all the tests at https://github.com/vic/den/blob/main/templates/ci. Let me know if this looks sound.

This adds a check that ensures it is either a native function or an
attribute set that only has __functor and/or __functionArgs attributes
@vic

vic commented Mar 1, 2026

Copy link
Copy Markdown
Member

I've tested it by running all the tests at https://github.com/vic/den/blob/main/templates/ci. Let me know if this looks sound.

thanks, but any change here must not depend on being tested in den, some people use flake-aspects without den, we have tests in this repo see checkmate dir, please add tests there

@musjj

musjj commented Mar 1, 2026

Copy link
Copy Markdown
Contributor Author

Ok, added a test for this. Lmk if this is good enough.

@vic
vic merged commit d9502ab into denful:main Mar 1, 2026
1 check passed
@vic

vic commented Mar 1, 2026

Copy link
Copy Markdown
Member

Awesome! thank you so much :)

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.

2 participants