Skip to content

Conversation

Dante-Broggi
Copy link
Contributor

Interval was a pointer to 2 Ints
it ought to be just 2 Ints, which is smaller and more semantically correct,
with no need for a cache.

However, this breaks AnyObject conformance and changes type metadata but people shouldn't be relying on those for an Interval.

Interval was a pointer to 2 Ints
it ought to be just 2 Ints, which is smaller and more semantically correct,
with no need for a cache.

However, this technically breaks metadata and AnyObject conformance but people shouldn't be relying on those for an Interval.
@KvanTTT
Copy link
Member

KvanTTT commented Apr 4, 2022

Interesting. I'm wondering how it affects performance.

@Dante-Broggi Dante-Broggi changed the title An interval ought to be a value [Swift] An interval ought to be a value Apr 4, 2022
@parrt parrt added this to the 4.10 milestone Apr 8, 2022
@parrt parrt merged commit 4e2bb5a into antlr:dev Apr 8, 2022
@Dante-Broggi Dante-Broggi deleted the interval-value branch April 10, 2022 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants