3 ms·
It's arguable that the Pascal-style declarations are superior in readability. I've discussed this with colleagues in the past, and those who were raised with E
by PommeDeTerre 14y ago
It's arguable that the Pascal-style declarations are superior in readability.
I've discussed this with colleagues in the past, and those who were raised with English as their native language, for example, often find C-style declarations easier to comprehend. They find the adjective (that is, the type) coming before the noun (the variable name) more natural.
The opposite happens for those whose native language is one where adjectives follow nouns. They find the Pascal convention easier to comprehend.
- omaranto 14y agoThe English speakers must not have taken many math courses: there type declarations much more commonly come after the variable name than the other way around, although both styles are used. I mean "Let G be a group and f an automorphism of G" is much more common than "Consider a group G and an automorphism of G, f".
- dchest 14y agoThe existence of this website http://cdecl.org/ http://cdecl.org/ confirms that even English speakers find it hard to read C-style declarations :-) Plus, types can be seen as nouns instead of adjectives: int x variable x is an integer var x int