News for hackers. Stuff that matters.
Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by wyan on Saturday September 17, 2022 @03:32PM (#32880671)
In many non-US keyboard layouts typing the ";" requires holding shift as well, so not sure how bad this issue is in actuality.
Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by Oreb on Sunday September 18, 2022 @04:55AM (#32885730)
Most non-US keyboards are terrible for programming in general. I only use my native Norwegian keyboard layout when I need to type a significant amount of text in Norwegian. Whenever I need to type some code, I switch back to US layout. I believe most other programmers do the same.
Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by qsort on Sunday September 18, 2022 @11:25AM (#32888306)
Yes, programming with anything other than the US layout is simply unbearable. I simply switched to the US layout for everything. Although to be fair my native language is Italian, which doesn't need many special characters.

Most programmers I know use native+US layouts (like you), a minority always uses US (like me), almost nobody uses a native layout to code.

Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by TheFlyingFish on Monday September 19, 2022 @11:36AM (#32899792)
I'm an English speaker, so I'm curious: Italian technically requires some accent marks, right? Do you have a quick way to do those from a US layout, or do you just ignore them in casual conversation the way people tend to ignore capitals and (some) punctuation?
Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by qsort on Monday September 19, 2022 @02:13PM (#32901853)
Yeah, technically it requires diacritical marks, but unlike French they are only written explicitly when they fall on the final letter of a word. Italian only has seven vowels, so these are the only common ones: è é ì ó ò ù à.

What I would do is this:

- Replace them with a single quote -> E' instead of È or É and so on.

- Ignore all uncommon marks.

In most contexts, it is perfectly acceptable to do that. A native speaker would understand without giving it a second thought or considering it impolite. I write emails to my boss like that.

If I had to make something meant for the public (say a UI, or a document), then I'd switch to the Italian layout for that purpose only and then go back to the US one.

Re:Cppfront, Herb Sutter's proposal for a new C++ syntax by account42 on Tuesday September 20, 2022 @06:43AM (#32910020)
Not for Italian, but I use a US keyboard layout with the addition of German umlauts behind right alt + letters (as well as right alt + ' and right alt + ` being dead keys to put accents on letters for foreign words). I find this much better than the standard German layout which puts all of @{[]}\~ behind right alt - and most of them on the right side of the keyboard too so you have to akwardly hit the right alt + combo with a single hand.