Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

termpose: Reverse the decision about the lists of lines with indental not being mingled with the indental #12

Open
makoConstruct opened this issue Jul 5, 2022 · 1 comment

Comments

@makoConstruct
Copy link
Owner

In the initial design,

a b
  c

would produce (a b c). In the spec-compliant rust version it produces ((a b) c). After using it for a bit, I think the reasons for wanting that are just too galaxy-brained. Cases where people wish it didn't do that are so much more common and the former design is generally easier to reason about. For instance, in the new design, this:

0
  a b
    indental

0 (a b
  indental

I imagine most people would miss that, and they would wish that it would work, and they might not easily be able to figure out how to even express the first structure with the second indents.

@makoConstruct
Copy link
Owner Author

The motivating case for this was commenting or producing literals, in munk.
I wanted to make sure that you could comment a block out by simply adding two characters at its root. EG

def including (query
  from (args my_alts music_taste)
  hops 5
  limit 40
  tag music

could be made inert in a way that still preserves the structure by adding #( or '( on the first line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant