C++ Logo


Advanced search

Re: Optional Semicolons

From: Hans Åberg <haberg-1_at_[hidden]>
Date: Thu, 28 Apr 2022 20:31:38 +0200
> On 28 Apr 2022, at 19:11, William Linkmeyer via Std-Discussion <std-discussion_at_[hidden]> wrote:
> I’ve been considering writing a paper which allows the programmer to elide semicolons when the statement is otherwise followed by any number of whitespace and a newline.
> This would *only* apply to statements — function and class declarations and prototypes would be left untouched.
> I am wondering if this has come up before, and, if so, what the reception was like. If there is no interest for this, I’d rather not write the paper or mess with libclang to see if a quick implementation is possible.

Haskell has admits layout syntax, which is actually optional, but it tends to generate hard to understand error messages.

Received on 2022-04-28 18:31:41