logoalt Hacker News

stkdump • today at 4:03 AM • 3 replies • view on HN

The modern universal keywords if, else, for and while are good because they are fairly short and thus quick to type.


Replies

justinator • today at 5:32 AM

"loop" can all be typed with one finger, as the letters are all together on the qwerty keyboard, and the "o" repeats itself.

"while" on qwerty is sort of a chore.

➕ show 4 replies
alexfortin • today at 5:19 AM

I'm writing some Crystal (which has Ruby-like syntax) and I'd add `unless` to the list. I like it!

➕ show 2 replies
divbzero • today at 4:39 AM

Yes, otherwise is more natural but less terse.

➕ show 2 replies