7 ms·
I really don't like having to type the shift key so often on QUERTY. A language where uppercase keywords are the norm sounds like it would lead to RSI. Then ag
by Xeoncross 9y ago
I really don't like having to type the shift key so often on QUERTY. A language where uppercase keywords are the norm sounds like it would lead to RSI.
Then again, we would probably have typescript, coffeescript, etc.. version of Oberon to solve this.
- hsitz 9y agoThe Pascal language is not case sensitive, nor, as far as I know, are any of its variants. From my experience with Delphi/Object Pascal back in the day, nobody capitalized keywords. You can see an example of typical code with lowercase keywords here: https://github.com/MarcoDelphiBooks/ObjectPascalHandbook/blob/master/01/HelloVisual/HelloVisualForm.pas https://github.com/MarcoDelphiBooks/ObjectPascalHandbook/blo...
- vidarh 9y agoIt is very common to see these languages typeset with uppercase keywords, though, but a lot of that certainly was the monochrome alternative to syntax-highlighting...
- fasquoika 9y agoFrom "The Oberon Programming Language"[0]: "Capital and lower-case letters are considered as being distinct....These reserved words consist exclusively of capital letters and cannot be used in the role of identifiers". So it seems that keywords do need to be in all-caps, at least if your compiler is compatible with Wirth's description (the standard?). [0]: https://people.inf.ethz.ch/wirth/Oberon/Oberon07.Report.pdf https://people.inf.ethz.ch/wirth/Oberon/Oberon07.Report.pdf
- mark-r 9y agoPascal was developed at a time when you couldn't count on both upper case and lower case being available. I learned it on a Control Data Cyber (6-bit character set) using Teletypes.
- pjmlp 9y agoNever heard of auto-formatting editors?
- teddyh 9y agoOr, you know, CAPS LOCK?
- bitwize 9y agoThis is why the capslock key was invented. :)
- pklausler 9y agoDoes the first row of your keyboard really have a U after the Q? Does the layout of the letters matter in an argument against using the shift key?
- bjoli 9y agoDevelopment in a language like that, you quickly start using editor macros. Even simple things like Emacs abbrev mode is enough to remove the vast majority of shift usage.