Powerletters for Rust

34 points by matklad


RaphGL

This adds nothing new and is optimizing the wrong thing. What you're optimizing is for writing, writing is not a bottleneck in programming.

You're compromising long term understanding by a broad amount of people with short term writing and understanding by a narrow amount of people with your own idiosyncratic abbreviations.

I'm writing not only for present me, I'm writing for me years in the future, for others that might wanna fork my project or fix a bug they ran into once. Saving 4 letters is not worth it.

wink

I kinda love it and I kinda hate it.

I've not written enough Rust to really be annoyed - and as long as this does not go to the whole alphabet it's still only a couple things to keep in mind.

On the other hand I've bashed perl in the past for "more than one way to do it" and this is not really easily discoverable, but if it's in one crate you would probably notice it by being imported and it's not "search for P in the whole stdlib docs"

ssokolow

It wasn't a good idea when the original Bourne shell was written in Bournegol and it's not a good idea now.

If you want this kind of thing, make it a property of the editor, not the codebase.

"Optimize for reading, not writing" is meant to refer to reading by everyone, not just the future self of the person who wrote it.

(Plus, making it a property of the editor means you can apply it to any codebase, not just your own... similar to how a codebase uses autoformatting is open to an analogue to git's autocrlf option, but which autoformats to your preferred style when checking out and to the repo style when committing.)

dpc_pw

Thanks, I hate it.

ogoffart

How about D() for Default::default() ?