Skip to content

Instantly share code, notes, and snippets.

@xpe
Created September 9, 2021 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xpe/c8eedf8123285eb763b80d788eeac8c2 to your computer and use it in GitHub Desktop.
Save xpe/c8eedf8123285eb763b80d788eeac8c2 to your computer and use it in GitHub Desktop.
What does "idiomatic" mean in the Rust community?

What does 'idiomatic' mean in Rust? Like many here, I even have some (false?) confidence that I know what idiomatic means.

Three Questions

Let me ask three questions:

  1. Who gets to decide what is idiomatic?

  2. How does something become idiomatic?

  3. What are the pros and cons of saying something is idiomatic?

One Perspective

From what I can tell, in spoken languages, idioms are defined by community practice and adoption. It is interesting to see what phrases become more and less common. Put another way, idioms are an emergent behavior of a group of people around a language.

Hypothesis

Idioms are better understood as emergent behavior than being defined rationally according to a set of core principles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment