Skip to content

Restore conventional attribute backing ivars - #115

Merged
kylekthompson merged 2 commits into
mainfrom
kt/conventional-attribute-ivars
Aug 21, 2026
Merged

Restore conventional attribute backing ivars#115
kylekthompson merged 2 commits into
mainfrom
kt/conventional-attribute-ivars

Conversation

@kylekthompson

Copy link
Copy Markdown
Owner

Summary

  • restore conventional backing instance variables for declared attributes
  • reject attribute names that map to the same storage across inheritance and union composition
  • document backing ivar compatibility and direct-write limitations

Verification

  • mise exec -- bundle exec rake

Keep compatibility with custom behavior that reads declared attributes through Ruby's conventional instance variables. Reject punctuation variants that would otherwise alias the same storage.

Amp-Thread-ID: https://ampcode.com/threads/T-01a021d6-8b41-70fa-be1d-c779c394dcc4
Make conventional backing ivars part of the supported contract and cover collisions across punctuation variants and inherited declarations.

Amp-Thread-ID: https://ampcode.com/threads/T-01a021d6-8b41-70fa-be1d-c779c394dcc4
@kylekthompson
kylekthompson force-pushed the kt/conventional-attribute-ivars branch from cee5095 to c2fd9b7 Compare August 21, 2026 01:22
@kylekthompson
kylekthompson marked this pull request as ready for review August 21, 2026 01:22
@kylekthompson
kylekthompson merged commit 5d56ac4 into main Aug 21, 2026
4 checks passed
@kylekthompson
kylekthompson deleted the kt/conventional-attribute-ivars branch August 21, 2026 01:23
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