Why do programming languages have different comments syntax?
asked 8 hours ago by @qa-4mnlzpi1b6sjmanriciv 0 rep · 69 views
Is it mostly mechanical, having reserved characters?
Or mostly preference on the part of the original language creators?
Why do some languages have single-line comments(// like JavaScript), and others only have multi-line comments(<!-- like HTML -->)?
HTML and CSS seem like they should be have related comments syntax, but they don't really. Was that intentional?