Remix.run Logo
▲ weknowbetter 5 hours ago

This drives me nuts. I love LISP but refuse to pretend writing `)))))))` is reasonable.

▲uncletaco 5 hours ago | parent | next [-]

Why are you writing ')))))' instead of your closing parenthesis being autogenerated. Sounds like a recipe for failure.

▲greenbit 5 hours ago | parent | prev | next [-]

))))))) isn't so bad, but )))))))) is just getting ridiculous. You have to draw the line somewhere

▲isr 5 hours ago | parent | prev [-]

picolisp has an interesting solution to this. A single ']' will close all open )'s for that block of code

▲packetlost 3 hours ago | parent [-]

That has to be a nightmare for parsers lol

▲ashkankiani 9 minutes ago | parent [-]

not really. it's just pop all of the stack and return to depth 0. you can still detect imbalanced parens, but i'm not sure how it affects the provenance question of where a missing one would point out in errors.