Skip to content

Bring AU to Au - #659

Merged
chiphogg merged 1 commit into
mainfrom
chiphogg/au-au
Feb 13, 2026
Merged

Bring AU to Au#659
chiphogg merged 1 commit into
mainfrom
chiphogg/au-au

Conversation

@chiphogg

Copy link
Copy Markdown
Member

It's about time we added the Astronomical Unit!

We'll use the slightly older "AU" symbol, rather than "au", to avoid
confusion with our ubiquitous namespace.

It's about time we added the Astronomical Unit!

We'll use the slightly older "AU" symbol, rather than "au", to avoid
confusion with our ubiquitous namespace.

@geoffviola geoffviola left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great!

constexpr auto astronomical_units = QuantityMaker<AstronomicalUnits>{};

namespace symbols {
constexpr auto AU = SymbolFor<AstronomicalUnits>{};

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.

So how much confusion would be causing if this was au (and/or the label was "au")? Given it's in the symbols namespace, it seems like it would be tractable?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Surprisingly, it... works? https://godbolt.org/z/x5qzvE5fK

Feels a little like tempting fate, but I don't know... maybe we should do it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Here is an example, https://godbolt.org/z/K1j1rdsGz, courtesy of Arthur O'Dwyer on the C++ slack, which convinces me that we should avoid reusing the namespace name au as an instance name.

@chiphogg
chiphogg merged commit 105a114 into main Feb 13, 2026
27 checks passed
@chiphogg
chiphogg deleted the chiphogg/au-au branch February 13, 2026 01:12
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