ex_format icon indicating copy to clipboard operation
ex_format copied to clipboard

Line splitting

Open uohzxela opened this issue 7 years ago • 2 comments

  • [ ] Accept option for line length limit
  • [x] When dealing with lists, maps, structs, or tuples, detect user intent and split element by element.
  • [ ] For other syntactic constructs, use the algorithm from "Strictly Pretty" instead (https://pdfs.semanticscholar.org/c73c/a9cc74351fe7f8f3dddc69d2e82326af82c0.pdf)

uohzxela avatar Jul 10 '17 00:07 uohzxela

Hello! Just so you know the algorithm in Inspect.Algebra does not match the one from "Strictly Pretty". I found it to be less useful for formatting source code, so I would recommend implementing the one from the paper instead. The Inspect.Algebra one can be used as a base :)

lpil avatar Jul 10 '17 09:07 lpil

I see, thanks for the heads-up!

uohzxela avatar Jul 10 '17 10:07 uohzxela