syntax icon indicating copy to clipboard operation
syntax copied to clipboard

redundant parens in a few places

Open bobzhang opened this issue 4 years ago • 0 comments

Here is a non-complete list where I think parens are redundant (work in progress). Note I am not suggesting to remove all of them, but to suggest to remove some of them to take advantage of hand written parser

  • [ ] first class module module (X) vs module X module ({ ...}) vs module {..}
  • [ ] inline records in types
type t = 
  | A ({ x : t })
  • [ ] inline records in pattern match
  • [ ] inline records in expressions
  • [ ] wild card patterns A (_) vs A _

bobzhang avatar Mar 12 '21 07:03 bobzhang