News for hackers. Stuff that matters.
Re:Carbon Language: An experimental successor to C++ by dangets on Tuesday July 19, 2022 @11:57AM (#32153544)
A blog post by Roman Elizarov (Kotlin designer) on the observation of types following the variable name [1]. It mostly states that having consistent length prefixes (fn, val/var) makes the code more readable than arbitrarily long type identifiers (in the eye of the beholder). Not scientific, but interesting.

[1] https://elizarov.medium.com/types-are-moving-to-the-right-22...

Re:Carbon Language: An experimental successor to C++ by kupiakos on Tuesday July 19, 2022 @12:35PM (#32154221)
Fixed prefixes also make a codebase significantly more grep-able. Want to find the definition of the function named `foobar`? Search `fn foobar` and that will always match, no regex required.
Re:Carbon Language: An experimental successor to C++ by renox on Wednesday July 20, 2022 @06:04AM (#32163550)
Only if you use a code formatter (which you should) because otherwise there will be some 'fn foobar'(two spaces or more) just to annoy you..