On 01/12/2026 16:33, Bonita Montero wrote:
> Am 01.12.2026 um 14:53 schrieb David Brown: >
>> Some other languages, like Haskell, make it easier to write your own operators and also let you use symbols for them.  C++ lets you write "rotatematrix(15_deg, "Z")", but not "15°".  (You'd have to find a Unicode letter that looks like a degree symbol.)
> This is sth. similar in C++: > > complex<double> operator ""_degree( long double angle ) > { >     return complex<double>( sin( angle ), cos( angle ) ); > }
That's what I said.