News for hackers. Stuff that matters.
Re:JavaScript Pattern Matching Proposal by armandososa on Wednesday April 25, 2018 @12:22PM (#16923094)
You'll need to insert a newline and 2 spaces before a code block to be recognized as such:

    switch(expr) {
       case 'foo': break;
       case { foo: bar }: break; 
    }
https://news.ycombinator.com/formatdoc
Re:JavaScript Pattern Matching Proposal by maemilius on Wednesday April 25, 2018 @12:45PM (#16923375)
Ah, thanks. I should have guessed it would work something like that.