News for hackers. Stuff that matters.
Re:CamelCase vs. Snake_case Scientific Studies by throwaway482945 on Tuesday May 21, 2024 @08:16AM (#40427396)
Would allowing spaces in identifiers even introduce any ambiguity in most languages? I think the only languages I've seen where it would matter are functional languages. e.g. I think it'd be possible to write a Python program using spaces instead of underscores, and be able to unambiguously parse it with a slightly modified parser?
Re:CamelCase vs. Snake_case Scientific Studies by ReleaseCandidat on Tuesday May 21, 2024 @08:20AM (#40427440)
> I think the only languages I've seen where it would matter are functional languages.

Yes, ML style function application is a problem and treating newlines as "normal" whitespace without having line separators (aka semicolons). And keywords used as infix operators, like another post reminded me of.

Re:CamelCase vs. Snake_case Scientific Studies by lpribis on Tuesday May 21, 2024 @07:20PM (#40435404)
The classic example of why whitespace in identifiers arguably causes more problems than it solves is https://www-users.york.ac.uk/~ss44/cyc/p/fbug.htm.

Since the space of valid syntax becomes so much larger, typos are more likely to result in valid but incorrect programs. Especially in dynamic interpreted languages like python.