Skip to content

Move hiffy_call into a method on HiffyContext#682

Merged
mkeeter merged 1 commit into
masterfrom
mkeeter/hiffy-call-method
May 28, 2026
Merged

Move hiffy_call into a method on HiffyContext#682
mkeeter merged 1 commit into
masterfrom
mkeeter/hiffy-call-method

Conversation

@mkeeter
Copy link
Copy Markdown
Contributor

@mkeeter mkeeter commented May 26, 2026

(Staged on #681)

This is a small simplification PR to make hiffy_call into a method on HiffyContext, since that's the type which clearly "owns" the behavior.

Comment thread humility-hiffy/src/lib.rs
}

/// Executes a Hiffy call, returning the output value (or an error)
pub fn call<T: humility::reflect::Load>(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i kinda wonder if this ought to still be named

Suggested change
pub fn call<T: humility::reflect::Load>(
pub fn hiffy_call<T: humility::reflect::Load>(

since all the call sites for it basically look like context.call(...) which doesn't make it clear that it's hiffy. i realize that the type is called HiffyContext, but the references to

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

but the references to

RIP Eliza, eaten by a grue mid-comment 🪦

(I'm going to keep this as call, since like you said it's a method on a HiffyContext)

@mkeeter mkeeter force-pushed the mkeeter/validate-decode branch from 7d6dd7d to 10fae77 Compare May 26, 2026 20:06
@mkeeter mkeeter force-pushed the mkeeter/hiffy-call-method branch 2 times, most recently from 06762af to 9bef9ab Compare May 26, 2026 20:18
@mkeeter mkeeter force-pushed the mkeeter/validate-decode branch 2 times, most recently from ea0665f to 5e045a6 Compare May 27, 2026 17:18
@mkeeter mkeeter force-pushed the mkeeter/hiffy-call-method branch from 9bef9ab to 5004e39 Compare May 27, 2026 17:18
Copy link
Copy Markdown
Contributor

@labbott labbott left a comment

Choose a reason for hiding this comment

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

LGTM I have no opinion on naming here

@mkeeter mkeeter force-pushed the mkeeter/validate-decode branch from 5e045a6 to 48e0910 Compare May 27, 2026 19:30
@mkeeter mkeeter force-pushed the mkeeter/hiffy-call-method branch from 5004e39 to 11943a3 Compare May 27, 2026 19:30
Copy link
Copy Markdown
Member

@hawkw hawkw left a comment

Choose a reason for hiding this comment

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

i also don't feel strongly about the naming thing

@mkeeter mkeeter force-pushed the mkeeter/hiffy-call-method branch from 11943a3 to 6b30409 Compare May 27, 2026 21:01
@mkeeter mkeeter force-pushed the mkeeter/validate-decode branch 2 times, most recently from 46c2356 to bb36316 Compare May 27, 2026 21:30
@mkeeter mkeeter force-pushed the mkeeter/hiffy-call-method branch 2 times, most recently from 1bdb2f7 to bf11d08 Compare May 28, 2026 12:37
@mkeeter mkeeter force-pushed the mkeeter/validate-decode branch 2 times, most recently from b57375b to db92a47 Compare May 28, 2026 13:56
@mkeeter mkeeter force-pushed the mkeeter/hiffy-call-method branch 2 times, most recently from 9b94c7a to f6196a5 Compare May 28, 2026 14:23
@mkeeter mkeeter force-pushed the mkeeter/validate-decode branch 2 times, most recently from 961db36 to 51cf51f Compare May 28, 2026 15:31
@mkeeter mkeeter force-pushed the mkeeter/hiffy-call-method branch from f6196a5 to 40a3fb8 Compare May 28, 2026 15:31
@mkeeter mkeeter force-pushed the mkeeter/validate-decode branch from 51cf51f to 871e7ec Compare May 28, 2026 16:00
@mkeeter mkeeter force-pushed the mkeeter/hiffy-call-method branch from 40a3fb8 to 418aa09 Compare May 28, 2026 16:00
Base automatically changed from mkeeter/validate-decode to master May 28, 2026 17:39
@mkeeter mkeeter force-pushed the mkeeter/hiffy-call-method branch from 418aa09 to bc6d425 Compare May 28, 2026 17:39
@mkeeter mkeeter merged commit 40d440e into master May 28, 2026
12 checks passed
@mkeeter mkeeter deleted the mkeeter/hiffy-call-method branch May 28, 2026 18:08
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