4 ms·
Assignment is more common than equality. Typing two identical sequential characters "==" is much easier than typing ":=" especially since on most keywords colon
by pitaj 3y ago
Assignment is more common than equality. Typing two identical sequential characters "==" is much easier than typing ":=" especially since on most keywords colon requires shift and equal does not. And having a two-character equality operator helps align things with "!=", ">=", "<=".
- weinzierl 3y agoEquality is so much more common than the other relational operators that it justifies the single letter.