Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

i understand the point you raise. but i believe symbols are generally aligned as they are because most fonts are designed for text and many monospace fonts respect those typographic traditions.

but i think code is not text and breaking some tradition improves readability.

the dash (hyphen) is actually supposed to align with the greater than symbol to resemble the arrow (extremely common symbol in C and many functional languages).



The greater/less-than symbols look too high to me as well, also when used as angle brackets like in HTML/XML/C++/Java/TypeScript/….




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: