Skip to content

Add @isAnnotated[A] and @reifyParamListCount metadata reflection (D16) - #22

Open
halotukozak wants to merge 3 commits into
d10-tag-guard-v2from
d16-isannotated-v2
Open

Add @isAnnotated[A] and @reifyParamListCount metadata reflection (D16)#22
halotukozak wants to merge 3 commits into
d10-tag-guard-v2from
d16-isannotated-v2

Conversation

@halotukozak

@halotukozak halotukozak commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Adds @isAnnotated[A] - a Boolean metadata slot reflecting whether the RPC element carries an annotation of type A, regardless of arity (unlike @reifyAnnot's single/optional/multi extraction). Method and param level.

Adds @reifyParamListCount - an Int metadata slot for the current method's parameter-list count, via Tuple.Size[op.ParamLists]. Method level only.

Updates DIVERGENCES.md's D16 entry. Covered by IsAnnotatedAndParamListCountSuite.

halotukozak and others added 2 commits August 10, 2026 10:27
@isAnnotated[A]: a Boolean metadata slot reflecting whether the RPC element
carries an annotation of type A, regardless of arity (unlike @reifyAnnot's
single/optional/multi extraction) - method and param level.

@reifyParamListCount: an Int metadata slot for the current method's number
of parameter lists, via Tuple.Size[op.ParamLists] - method level only.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
# Conflicts:
#	src/mrpc/derive/MetadataDerivation.scala
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.

1 participant