DEV Community

Discussion on: Which programming language features do you love and why?

Collapse
 
joanllenas profile image
Joan Llenas Masó

My picks (from Elm):

  • Immutability: Fewer things to worry about.
  • case of expressions and Pattern matching: being able (obligated) to exhaustively check all possible patterns of a given expression makes programs much more robust.
  • ADTs: I can't articulate exactly why. They feel very intuitive and I just love them :)
  • |> operator: Cleaner code by getting rid of the parenthesis.
Collapse
 
dwayne profile image
Dwayne Crooks

Yes, +1 for immutability and pattern matching on tagged unions as well.

By ADTs do you mean algebraic or abstract data types?

Collapse
 
joanllenas profile image
Joan Llenas Masó

Union Types and Product Types, the ones supported by Elm.

Collapse
 
pdandy profile image
Andy Thompson

I can live without everything but ADTs and pattern matching. In languages without these features, everything feels so clunky.