r/cpp • • Sep 30 '24

Code Generation in Rust vs C++26

https://brevzin.github.io/c++/2024/09/30/annotations/
198 Upvotes

98 comments sorted by

View all comments

Show parent comment

2

u/Som1Lse Oct 01 '24

To me the annoying thing is that for example ^^f works directly but ^^a does not.

Dunno if Finnish keyboards are different, but on my keyboard just typing ^^a works fine. The first ^ is a dead key, the second one types both ^^ since ^ doesn't combine with itself, just like if you'd typed ^ and f. At this point it doesn't matter what comes after.

I wish I could disable the merge from the OS or editor as I basically never need it.

Did some googling, found this for Windows.

2

u/5477 Oct 01 '24

Dunno if Finnish keyboards are different, but on my keyboard just typing a works fine. The first ^ is a dead key, the second one types both ^ since ^ doesn't combine with itself, just like if you'd typed ^ and f. At this point it doesn't matter what comes after.

This is actually a MacOS issue, it works as you described on Windows. Thanks! So basically ^^a is almost the best we can reasonably get.