Post APtFDQhpj7MMRi4RWK by mhd@tilde.zone
(DIR) More posts by mhd@tilde.zone
(DIR) Post #APtFDQhpj7MMRi4RWK by mhd@tilde.zone
2022-11-23T07:56:51Z
1 likes, 1 repeats
Does any of the new programming languages everyone seems to force upon poor old LLVM support function names with spaces? No weird unicode characters, regular spaces.That used to be a thing waaaay back in the ALGOL age, but apparently we've got some kind of StockholmSyndrome with CamelCase now.
(DIR) Post #APu0mh9tFCRvSBVmka by niclas@angrytoday.com
2022-11-23T17:37:55Z
0 likes, 0 repeats
@mhd And forbidden_fruit_complex with snake_case. 😂
(DIR) Post #APu12gHGHuBHM1aAKG by niclas@angrytoday.com
2022-11-23T17:40:48Z
0 likes, 0 repeats
@mhd I think the main problem lies in the way the parsers/compilers work. They tokenize before they have any clue about syntax, declarations and so on.Way back in time, compilers weren't cold, off-the-shelf and academic, but handcrafted art pieces.
(DIR) Post #APu3rUlp1wNOLJEbeS by mhd@tilde.zone
2022-11-23T18:12:23Z
0 likes, 0 repeats
@niclas On the other hand, we also know a lot more about parsing. And skipping white space is done anyways for other parts, just not within identifiers.I would guess it's a combination of being used to how variables/functions are "supposed" to be named (upper/lower ASCII plus underscore maaaaybe a minus), grep gripers (ambiguity when using braindead tools) and the inability to "strop" keywords. Can't sell upper-case keywords.