Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

registerDecls swallows its options parameter

Open
#61 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Quiet
Tech stack
zig

Research direction

Start with src/register_decls.zig and inspect registerDecls alongside its createCallback call, then review the context from issue #59. Define whether options should be forwarded or removed/documented, and consider the public API implications; done means registerDecls no longer silently discards an accepted parameter.

Written by the indexing model from the issue text.

Description

Type: Enhancement

Context

Noted while reviewing #59. registerDecls(decls, options) accepts a comptime options parameter but discards it (_ = options;), while internally passing a hardcoded .{} as the options to createCallback. The parameter is dead weight in a public signature — callers can pass anything and it silently does nothing.

Proposal

Either:

  • forward options (or a per-decl subset of it) to createCallback so callers can use arg/return hints (ArgHint, returns hints) with registerDecls, or
  • remove/document the parameter as reserved until there is a concrete design for it.

Ref: src/register_decls.zig

Dominant language
Zig
Stars
4
Forks
4
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ChainSafe/zapi

All issues in ChainSafe/zapi

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.