Semantic Indentation is an actively used design pattern.

?Years Old
  • Semantic Indentation does not currently rank in our top 50% of entities I track
  • I have 52 facts about Semantic Indentation. what would you like to know? email me and let me know how I can help.
  • Read more about Semantic Indentation

Languages without Semantic Indentation include go, julia, kotlin, rust, swift

Languages with Semantic Indentation include abc, aldor, boo, buddyscript, cobra, coffeescript, csl, curry, elixir, f-sharp, genie, haml, haskell, i-expressions, inform, iswim, literate-coffeescript, livescript, madcap-vi, madcap, makefile, markdown, miranda, nemerle, net-format, nim, occam, org, promal, purescript, python, restructuredtext, sass, scss, spin, stylus, sweet-expressions, wisp, xl-programming-language, yaml

Example from purescript:

-- Syntax is whitespace sensitive. The general rule of thumb is that declarations which span multiple lines should be indented past the column on which they were first defined on their subsequent lines.
foo = bar +

Last updated July 8th, 2019