You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes all code generators to use idiomatic Go naming pattern where the first
occurrence of a temporary variable has no number suffix, with subsequent
occurrences numbered starting at 1.
Pattern:
- First: tmp, err, coalesce (no number)
- Second: tmp1, err1, coalesce1
- Third: tmp2, err2, coalesce2
Changes:
- error_prop.go: tmp/err generation logic updated
- null_coalesce.go: coalesce variable naming updated, counter init fixed
- safe_nav.go: Counter init fixed, camelCase for pointer mode (userTmp vs __user_tmp0)
- plugin.go: NextTempVar() updated for no-number-first
- CLAUDE.md: Documentation updated with new convention
- All golden test files regenerated (17 files)
This prevents the old pattern (tmp1, tmp2, tmp3) and zero-based pattern (tmp0, tmp1).
Generated code now looks more hand-written and idiomatic.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments