top | item 44856797

(no title)

z_open | 6 months ago

Even if we ignore solutions other languages have come up with, it's even worse that they landed on // for the syntax given that it's apparently used the same way for real comments.

discuss

order

WCSTombs|6 months ago

But those are two different slashes? \\ for strings and // for comments?

IshKebab|6 months ago

Yeah I agree \\ is not the best choice visually (and because it looks quite similar to //

I would have probably gone with ` or something.

n42|6 months ago

> it's even worse that they landed on // for the syntax

.. it is using \\

hinkley|6 months ago

I worked with browsers since before most people knew what a browser was and it will never cease to amaze me how often people confuse slash and backslash, / and \

It’s some sort of mental glitch that a number of people fall into and I have absolutely no idea why.