2 ms·
"If generics are a feature then their use will, by definition, be idiomatic." I'd agree, but for the "by definition". "Idiomatic" is a question of typical pat
by dllthomas 12y ago
"If generics are a feature then their use will, by definition, be idiomatic."
I'd agree, but for the "by definition". "Idiomatic" is a question of typical patterns of use. This is "a function of the language syntax and features", but that function is not a simple or static one and involves the programming community around the language. It's certainly possible for a feature to fall out of favor and its use to be unidiomatic.
- dragonwriter 12y ago> I'd agree, but for the "by definition". "Idiomatic" is a question of typical patterns of use. This is "a function of the language syntax and features", but that function is not a simple or static one and involves the programming community around the language. It's certainly possible for a feature to fall out of favor and its use to be unidiomatic. For example, Ruby for loops are part of the language, but there use is pretty universally considered unidiomatic.
- NateDad 12y agoEven in a small, young language like go, there are already features that are considered somewhat unidiomatic, like naked returns: https://tour.golang.org/basics/7 https://tour.golang.org/basics/7