New answers tagged

4

Most languages intentionally lend themselves to a particular style. Code written in that style is what is idiomatic. If you look past the circumstantial fact that you choice of runtime environment narrows your available choice of languages, you should choose languages because the problem at hand is easy to express in the particular idioms of a language. ...


9

I'm not sure where you get the idea that idioms have any moral connotations. Idioms are just a way to express things. They are patterns at a scale larger than individual words or phrases. If I told you that one must howl with the wolves, you wouldn't know what I meant, even though that is a well-known German idiom. If, OTOH, I told you, when in Rome, do as ...


19

First, I'm not sure that there is any sort of "moral correctness" in the term "idiomatic". The plain dictionary definition is simply peculiar to or characteristic of a particular language or dialect: idiomatic French. Yes, idiomatic code generally reduces cognitive overhead, particularly at interface definitions where the standard libraries and any ...



Top 50 recent answers are included