News for hackers. Stuff that matters.
Re:Such a Little Thing: The Semicolon in Rust by lucian1900 on Thursday October 18, 2012 @07:23PM (#4671563)
A potential workaround is to always use an American keyboard. It's what I do.
Re:Such a Little Thing: The Semicolon in Rust by symmetricsaurus on Friday October 19, 2012 @03:11AM (#4672595)
Indeed. On a Swedish keyboard the semicolon is not the biggest problem though. {}[] are since you need to press right-alt+number keys to get them. Really awful. It takes a very short time using an American keyboard for coding to realize its benefits.

Still, even on an American keyboard () are not terribly well placed.

I've been thinking about adopting the NEO2 layout(with some modification so that I get all of åäö) but haven't gotten around to it yet. Has anyone tried that for programming?

Re:Such a Little Thing: The Semicolon in Rust by tomlu on Friday October 19, 2012 @03:34AM (#4672626)
Hej!

I have all my symbol characters easily accessible from the normal A-Z keys using a third shift state. It's awesome, and works with any keyboard layout (QWERTY, or even Swedish QWERTY are all fine, as is Dvorak, Colemak etc). Typing a previously uncomfortable sequence like "for (int i = 0; i < count; ++i)" is even pleasant now.

It takes about two weeks to get used to. If you try it, make sure the third shift state can be accessed from either hand (i.e. you have to have left and right keys, just like with shift or control).

I wasn't aware of NEO2 so I developed my own symbol layout using a genetic algorithm running over my code corpus, then adjusting to taste.

Re:Such a Little Thing: The Semicolon in Rust by bitcracker on Friday October 19, 2012 @08:34AM (#4673211)
Another solution is xmodmap in Unix or some similar tool in Windows to change the keyboard layout. With that solution you don't have to miss the default national keyboard layout.