Arc Forumnew | comments | leaders | submitlogin
1 point by Pauan 5164 days ago | link | parent

Ah, right, I thought you meant getting rid of `( ... ) Yeah, that seems okay. But in that case, you'll probably never be able to completely fix the issue where you have a long list of data, as described in the other post.

You could probably come up with a compromise that works the majority of the time, though. For instance, you could disable indentation inside of '( ... ) but still allow for indentation with `( ... )



2 points by akkartik 5164 days ago | link

Yeah that's a good point. If this approach is too aggressive I can back off and disable paren-insertion inside parens. I already do that to make things like this work:

  def foo(a ? d (if x
                   3
                   4))
    ...

-----

2 points by akkartik 5164 days ago | link

"I thought you meant getting rid of `( ... )"

Yeah if I could get rid of that one we'd be able to add macros to C or python :) But imagine a language that can look like python most of the time. But if you want macros, then the parens return.

-----

2 points by akkartik 5164 days ago | link

"you could disable indentation inside of '( ... ) but still allow for indentation with `( ... )"

Ugh, that's ugly. I think I'll give up on paren-insertion before trying to remember stuff like that :)

-----