Skip to content

Turn on f-strings for all builds in 7.3.0#6415

Merged
dhalbert merged 2 commits into
adafruit:7.3.xfrom
dhalbert:7.3.x-fstrings-for-all
May 21, 2022
Merged

Turn on f-strings for all builds in 7.3.0#6415
dhalbert merged 2 commits into
adafruit:7.3.xfrom
dhalbert:7.3.x-fstrings-for-all

Conversation

@dhalbert

@dhalbert dhalbert commented May 21, 2022

Copy link
Copy Markdown
Collaborator

In 8.0.0, we are gaining space, at least initially, which is espeically noticeable on small builds. How do we spend it? I was originally going to put back onewireio, but I'm thinking that making f-strings uniformly available is quite advantageous, because it simplifies writing many examples and libraries.

We could do that in 8.0.0, but would it be possible in 7.3.0? I think the sooner, the better. This PR, starting as draft, tests which builds will fail. In 8.0.0, f-strings takes only 440 bytes more in a Trinket M0 build.

@dhalbert dhalbert force-pushed the 7.3.x-fstrings-for-all branch from fe78d5e to 338e14d Compare May 21, 2022 14:22
@dhalbert dhalbert marked this pull request as ready for review May 21, 2022 14:39

@tannewt tannewt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great idea! Thank you!

@dhalbert dhalbert merged commit eb4ed30 into adafruit:7.3.x May 21, 2022
@dhalbert dhalbert deleted the 7.3.x-fstrings-for-all branch May 21, 2022 16:24
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.

2 participants