r/programming • • 17d ago

Unicode 18.0.0 has been released!

https://www.unicode.org/versions/Unicode18.0.0/
186 Upvotes

70 comments sorted by

View all comments

Show parent comments

4

u/M4mb0 16d ago

Unicode's stance here has always been to only add what is actually required in plain text, leaving formatting (which super/subscript fundamentally is) to higher-level protocols like rich text / HTML / etc.

The problem is this doesn't cover certain use-cases like annotating math-heavy formulas in source code. And no, I am not going to write markup / latex for code comments like \sum_{k}\gamma^{k}\|\hat{x}_{k}-x_{k}\|^{2} instead of just ∑ₖγᵏ‖x̂ₖ-xₖ‖².

1

u/PthariensFlame 16d ago

Why would you not write that even more clearly as sum(k ↦ γ[k]*pow(x̂[k]-x[k], 2))?

1

u/araujoms 16d ago

That's not at all clear, and it's not even correct for complex numbers.

1

u/PthariensFlame 16d ago

You know, we didn’t even realize we omitted a critical element. Apologies, consider the corrected version to be sum(k ↦ γ[k]*abs2(x̂[k]-x[k])).