Semicolon vs Apostrophe Frequency in Computer Languages

By Xah Lee. Date: . Last updated: .

Here is a table of their frequency.

Semicolon and Apostrophe Frequency in Computer Languages
langsemicolon ;apostrophe '
(single quote)
Java8.0%0.5%
C6.9%0.8%
C++3.5%0.2%
Python0.2%10.6%
Ruby0.3%4.4%
Bash1.1%6.9%
PHP5.1%9.5%
Perl4.9%6.1%
JavaScript5.2%6.8%

If you code {C, C++, Java}, then semicolon is far more frequent.

If you code in {Python, Ruby, Bash}, apostrophe is far more frequent.

If you code in {PHP, Perl, JavaScript}, apostrophe is still more frequent.

And in English, the semicolon is almost never used, apostrophe is used often. (e.g. โ€œit'sโ€, โ€œthat'sโ€, 'single quotes', โ€ฆ.)

See also: Arrow Keys: vim HJKL vs Inverted T

Keyboard Layout Design ๐Ÿ” 

Layout Efficiency