Skip to content

Conversation

@johannes-wolf
Copy link
Collaborator

@johannes-wolf johannes-wolf commented Jul 20, 2025

This allows for a more type-safe API but is a breaking change.

@johannes-wolf johannes-wolf changed the title string-pool: Introduce a strong typedef for Ids string-pool: Introduce a strong typedef for StringId Jul 20, 2025
cursor[bot]

This comment was marked as outdated.

@github-actions
Copy link

github-actions bot commented Jul 20, 2025

Test Results

 1 files  ±0   1 suites  ±0   2m 55s ⏱️ +2s
53 tests ±0  53 ✅ ±0  0 💤 ±0  0 ❌ ±0 
58 runs  ±0  58 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 1271988. ± Comparison against base commit 1725bbf.

♻️ This comment has been updated with latest results.

@johannes-wolf johannes-wolf force-pushed the string-id-strong-typedef branch from b78df7f to e9fa8c0 Compare July 20, 2025 12:21
cursor[bot]

This comment was marked as outdated.

@johannes-wolf johannes-wolf force-pushed the string-id-strong-typedef branch from e9fa8c0 to 62fde0b Compare July 20, 2025 12:26
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Copy link
Collaborator

@josephbirkner josephbirkner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@johannes-wolf
Copy link
Collaborator Author

@josephbirkner We could also use https://github.com/foonathan/type_safe for the StringHandle.

@josephbirkner
Copy link
Collaborator

That looks like an awesome library in general. I would support going for it.

@johannes-wolf johannes-wolf force-pushed the string-id-strong-typedef branch from c036404 to 1271988 Compare August 4, 2025 12:28
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 4, 2025

@johannes-wolf
Copy link
Collaborator Author

I've decided not to use type_safe, as it was very cumbersome to adapt the StingHanlde using strong_typedef to support the features we need (implicit cast from Enum, acting as an index type, etc.).

@johannes-wolf
Copy link
Collaborator Author

I will merge this after #118 because of API breaks.

@github-actions
Copy link

github-actions bot commented Aug 4, 2025

Package Line Rate Branch Rate Health
include.simfil 67% 48%
include.simfil.model 91% 53%
src 71% 43%
src.model 82% 48%
Summary 74% (2910 / 3940) 44% (2553 / 5791)

Minimum allowed line rate is 50%

@johannes-wolf johannes-wolf marked this pull request as draft October 19, 2025 15:55
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.

3 participants