4 ms·
> “unconventional” or “fancy” is in the eye of the beholder. Literally not: a language defines its own conventions, they're not defined in terms of individual
by kiitos 1y ago
> “unconventional” or “fancy” is in the eye of the beholder.
Literally not: a language defines its own conventions, they're not defined in terms of individual users/readers/maintainers subjective opinions.
> Whose conventions are we talking about?
The conventions defined by the language.
> Code is bad when it doesn't look the way you want it to?
No -- when it doesn't satisfy the conventions established by the language.
> I may find code hard to read because it's formatted “conventionally”,
If you did this then you'd be wrong, and that'd be a problem with your personal evaluation process/criteria, that you would need to fix.
- Capricorn2481 1y ago> a language defines its own conventions Where are these mythical languages? I think the word you're looking for is syntax, which is entirely different. Conventions are how code is structured and expected to be read. Very few languages actually enforce or even suggest conventions, hence the many style guides. It's a standout feature of Go to have a format style, and people still don't agree with it. And it's kinda moot when you can always override conventions. It's more accurate to say a team decides on the conventions of a language.