🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #6335

Re: language commenting constructs

#6335
From: Dan Pierson
Date: Tue, 21 Mar 1989 18:38
24 lines
1470 bytes
In article <7555@killer.Dallas.TX.US>, elg@killer (Eric Green) writes:
>The languages in which I have programmed most are "C", Pascal,
>various assembly languages, and Lisp/Scheme. The first two have
>explicit terminators, the latter two make everything between a ";" and
>EOL a comment. When I do assembler or Lisp I regularly run into
>situations where I want to imbed a comment into a statement for
>clarity's sake, and can't do it. 

You're probably stuck in assembler, but I sort of question where you'd
need such a feature.

In Common Lisp, you can either use the matching comment syntax

    (apply foo #| useless! |# a1 a2)

or define your own with the read-macro facility.

Some Scheme dialects, such as T, let you do similar things.
-- 
                                            dan

In real life: Dan Pierson, Encore Computer Corporation, Research
UUCP: {talcott,linus,necis,decvax}!encore!pierson
Internet: pierson@encore.com
Technical Details
Message-ID: <5175@xenna.Encore.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!encore!mist
References: <10460@lanl.gov> <7555@killer.Dallas.TX.US>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!encore!mist
From: pierson@mist (Dan Pierson)
Newsgroups: comp.lang.misc
Subject: Re: language commenting constructs
Message-ID: <5175@xenna.Encore.COM>
Date: 21 Mar 89 18:38:19 GMT
References: <10460@lanl.gov> <7555@killer.Dallas.TX.US>
Sender: news@Encore.COM
Reply-To: pierson@mist (Dan Pierson)
Organization: Encore Computer Corp
Lines: 24
In-reply-to: elg@killer.Dallas.TX.US (Eric Green)