Skip to content

Extract magic numbers as named constants in Instrumenter#7

Merged
johngallagher merged 1 commit into
mainfrom
claude/extract-magic-numbers-o11wK
Mar 9, 2026
Merged

Extract magic numbers as named constants in Instrumenter#7
johngallagher merged 1 commit into
mainfrom
claude/extract-magic-numbers-o11wK

Conversation

@johngallagher

Copy link
Copy Markdown
Contributor

Replace unexplained literals with self-documenting constants:

  • 10 (caller stack depth) -> CALLER_STACK_LIMIT
  • 10 (array serialization cap) -> MAX_ARRAY_ITEMS
  • 2 (default serialization depth) -> DEFAULT_SERIALIZATION_DEPTH

https://claude.ai/code/session_01KWZUse79XR68i6nGa8VgTu

Replace unexplained literals with self-documenting constants:
- 10 (caller stack depth) -> CALLER_STACK_LIMIT
- 10 (array serialization cap) -> MAX_ARRAY_ITEMS
- 2 (default serialization depth) -> DEFAULT_SERIALIZATION_DEPTH

https://claude.ai/code/session_01KWZUse79XR68i6nGa8VgTu
@johngallagher johngallagher merged commit 06fd124 into main Mar 9, 2026
23 checks passed
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