Hacker News new | past | comments | ask | show | jobs | submit login

Good point. But my assumption would be that backslash was chosen because it's a reserved sequence that didn't have a meaning yet. E.g. they could have started suddenly treating "It costs $x, where x is the number of rides" as a compile time error when it previously was a perfectly valid string literal. And not everyone wants to introduce yet another string literal syntax like ES6 does with backticks...



Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: