🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.emacs
Article #77

Re: favorite emacs games

#77
From: Lawrence D’Oliveiro
Date: Tue, 10 Nov 2026 20:05
37 lines
2147 bytes
On Tue, 10 Nov 2026 11:19:19 +0000, Lars Brinkhoff wrote:

> Lawrence D’Oliveiro writes:
>>
>> Why the need for multiple semicolons? Is one each time not enough?
>
> It's an old convention going back to Maclisp and also some assembler
> code on the MIT PDP-10's.

I picked up a convention used on DEC software, and have adapted it to
multiple different languages since then: section-header comments are
bracketed by lines containing “+” and “-” characters. E.g.

    ;+
    ; User-visible stuff follows
    ;-

(assembler, also Lisp)

    #+
    # User-visible stuff follows
    #-

(Python, Perl, shell etc)

For languages like C, C++ and Java, which thankfully allow block
comments, it’s a bit simpler:

    /*
        User-visible stuff follows
    */

Though if you insist on the rest-of-line style, I could do that too:

    //+
    // User-visible stuff follows
    //-
Technical Details
Message-ID: <11cvteo$2evb3$3@dont-email.me>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <878q33p38m.fsf@fuhgitabutit.com> <ygaeccujagm.fsf@akutech.de> <11ctgut$1lilf$2@dont-email.me> <7wo6bxorwo.fsf@junk.nocrew.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D’Oliveiro <ldo@nz.invalid>
Newsgroups: comp.emacs
Subject: Re: favorite emacs games
Date: Tue, 10 Nov 2026 20:05:44 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <11cvteo$2evb3$3@dont-email.me>
References: <878q33p38m.fsf@fuhgitabutit.com> <ygaeccujagm.fsf@akutech.de>
	<11ctgut$1lilf$2@dont-email.me> <7wo6bxorwo.fsf@junk.nocrew.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 10 Nov 2026 20:05:45 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2588003"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18OYbeZ4ezeMMKIZ4iDTVWr"; posting-host="8aa37c992cabae6d5b06f5997f2c40c5"
User-Agent: Pan/0.165 (Kostiantynivka)
Cancel-Lock: sha1:JkhNvLPuW4NCDBPKPhGH83PPuTw= sha256:JUoqQ7h3lciPrvUTdUCFKqF+Lq5FwPZWVtdQ0WVAInE=
	sha1:LBSn8o3kU5WIzWn8F4u1V2qM4eI= sha256:sXRA5/NQSa7T6xiCbeUH+treN8q/ipw4DqJZC9mHw5g=