Skip to content

Add some backwards-compatible getters #206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 2, 2025
Merged

Add some backwards-compatible getters #206

merged 2 commits into from
Jun 2, 2025

Conversation

pcuenca
Copy link
Member

@pcuenca pcuenca commented Jun 2, 2025

Unfortunately, we can't provide a dictionary var because the symbol has been replaced with dictionary() now :(

Even so, I think this could be useful for many downstream users, I don't think the use of dictionary is too frequent.

What are your thoughts @FL33TW00D, @DePasqualeOrg?

@pcuenca pcuenca requested a review from FL33TW00D June 2, 2025 14:12
@FL33TW00D
Copy link
Collaborator

@pcuenca Looks really good!

CI is only failing due to 429.

@DePasqualeOrg
Copy link
Contributor

I didn't have time to dig into this, so no notes. I'll test it in ml-explore/mlx-swift-examples#322 once it's merged.

@pcuenca
Copy link
Member Author

pcuenca commented Jun 2, 2025

I didn't have time to dig into this

TL;DR: you will be able to keep using stringValue, but dictionary will still have to be changed to dictionary(), unfortunately.

@pcuenca pcuenca merged commit 50e9c0d into main Jun 2, 2025
2 of 3 checks passed
@pcuenca pcuenca deleted the old-style-accesors branch June 2, 2025 15:21
@DePasqualeOrg
Copy link
Contributor

Great, ml-explore/mlx-swift-examples#322 builds with no errors using the latest commit of swift-transformers. Would you like to create a new version tag? Then I can update the dependency in mlx-swift-examples.

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