Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by isr

7 hours ago

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

2 comments

isr

Reply

packetlost  5 hours ago

That has to be a nightmare for parsers lol

  • ashkankiani  2 hours ago

    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.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities