A helpful list of antonyms with the same word length for your everyday variable names:
Antonyms | C++ | Python |
---|---|---|
lo /hi |
✔ | ✔ |
up /dn |
✔ | ✔ |
rd /wr |
✔ | ✔ |
beg /end |
✔ | ✔ |
src /dst |
✔ | ✔ |
top /bot |
✔ | ✔ |
get /set |
✔ | ✔ |
old /new |
❌ Keyword new |
✔ |
min /max |
✔ | ❌ Builtin min and max |
new /del |
❌ Keyword new |
❌ Keyword del |
add /del |
✔ | ❌ Keyword del |
fix /var |
✔ | ✔ |
head /tail |
✔ | ✔ |
pred /succ |
✔ | ✔ |
large /small |
✔ | ✔ |
accept /reject |
✔ | ✔ |
source /target |
✔ | ✔ |
prev /curr /next |
✔ | ❌ Builtin next |
relative /absolute |
✔ | ✔ |
get
/got
/gen
(gen
for generate)width
/depth
length
/height