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

Additionally, standardizing all quotes makes searching for a specific string literal across a codebase easier, since you don't need regex to match against both quote types. Once you've decided to standardize strings, it doesn't matter much which one you pick.

Personally, I still type single quotes in almost all cases, and just let Black reformat to double quotes to save shift key presses.



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

Search: