Sujet : Re: Which code style do you prefer the most?
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 02. Mar 2025, 17:50:07
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vq2280$rt14$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 02.03.2025 17:32, Scott Lurndal wrote:
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
On 01.03.2025 23:20, Lawrence D'Oliveiro wrote:
On Sat, 1 Mar 2025 21:32:59 +0100, Janis Papanagnou wrote:
>
My guess is that this form is just an informal syntax mimicking Perl's
function parameter passing ...
>
The idea of passing arguments by keyword predates Perl.
>
That wouldn't surprise me. - I know it from Perl. - Which other
(earlier) languages do you have in mind? - What's its origin?
VAX-11 Pascal supported it (and a form of comment that you would dislike).
Interesting. (I didn't know that DEC supported a Pascal dialect.)
WRT that comment; I think that {...} is not worse than the (*...*)
variant we often see. - The main point is, though, how it fits in
the language. - "C" is already full of punctuation characters, and
especially the '*' is existing in many contexts. Pascal, OTOH, is
very text-biased; so its two comment variants don't annoy [me] too
much. (The "open end" comment property is not dominating here.)
Total_memory := 0;
REPEAT
Ss_status := $GETJPI( PIDADR := Wild_pid, EFN := 4, ITMLST := Jpi_list );
IF ODD( Ss_status ) AND (Terminal_len <> 0) THEN
BEGIN
$WAITFR( 4 ); { Wait for asynch stuff to return }
What's that '$' preceding the function names? (I don't recall that
from the Pascal standard or from the versions I programmed with.)
Janis