Groups | Search | Server Info | Login | Register
Groups > comp.os.linux.misc > #59069
| From | Bob Eager <news0009@eager.cx> |
|---|---|
| Newsgroups | alt.folklore.computers, comp.os.linux.misc |
| Subject | Re: TeX and Pascal [was Re: The joy of FORTRAN] |
| Date | 2024-10-04 10:59 +0000 |
| Message-ID | <lma03qFmmqaU35@mid.individual.net> (permalink) |
| References | (17 earlier) <vdh2l1$2p7e2$1@dont-email.me> <vdh3ku$2path$1@dont-email.me> <vdhqnf$2t1fi$4@dont-email.me> <e6tLO.276711$FzW1.154698@fx14.iad> <2028019001.749690291.329651.peter_flass-yahoo.com@news.eternal-september.org> |
Cross-posted to 2 groups.
On Thu, 03 Oct 2024 16:34:15 -0700, Peter Flass wrote: > Louis Krupp <lkrupp@invalid.pssw.com.invalid> wrote: >> On 10/1/2024 3:48 PM, Lawrence D'Oliveiro wrote: >>> On Tue, 1 Oct 2024 16:14:37 +0100, The Natural Philosopher wrote: >>> >>>> And knowing that p=(x>y?3:2); >>> I would have done it without the parentheses. There’s too much >>> parenthesis clutter around as it is. >> >> Add some spaces, and you've got something downright readable: >> >> p = x > y ? 3 : 2; >> >> Maybe add parentheses around the comparison, especially if it's long or >> complex, which this isn't: >> >> p = (x > y) ? 3 : 2; >> >> It's idiomatic C. It's everywhere. Perl and Python have something >> similar. So does Unisys ALGOL, not that anyone cares: >> >> P := IF X > Y THEN 3 ELSE 2; >> >> If you want to see gratuitous cleverness for the sake of cleverness, >> there's this: >> >> p = (x > y) + 2; >> >> Please don't do that. Would you write: >> >> P := REAL((X > Y) AND TRUE) + 2; >> >> if you were doing this in ALGOL? >> >> I didn't think so. >> >> Louis >> >> >> >> >> > I like the Unisys version. At the cost of a couple of characters it’s > readable. The C version is not straightforward for those of us for whom > C is a second or third language. The C version, of course, was merely a syntactic change from the BCPL version (on which, via B, it was based): p := (x > y) -> 3, 2 (parentheses optional) -- Using UNIX since v6 (1975)... Use the BIG mirror service in the UK: http://www.mirrorservice.org
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Re: TeX and Pascal [was Re: The joy of FORTRAN] "186282@ud0s4.net" <186283@ud0s4.net> - 2024-09-29 01:44 -0400
Re: TeX and Pascal [was Re: The joy of FORTRAN] The Natural Philosopher <tnp@invalid.invalid> - 2024-09-29 07:50 +0100
Re: TeX and Pascal [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-09-29 07:06 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] Lars Poulsen <lars@beagle-ears.com> - 2024-09-29 06:55 -0700
Re: TeX and Pascal [was Re: The joy of FORTRAN] Lars Poulsen <lars@beagle-ears.com> - 2024-09-29 09:08 -0700
Re: Procedural, Functional, String [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-09-29 23:21 +0000
Re: Procedural, Functional, String [was Re: The joy of FORTRAN] Lars Poulsen <lars@beagle-ears.com> - 2024-09-29 16:25 -0700
Re: Procedural, Functional, String [was Re: The joy of FORTRAN] p.dean@invalid.net (Peter Dean) - 2024-09-29 23:36 +0000
Re: Procedural, Functional, String [was Re: The joy of FORTRAN] drb@ihatespam.msu.edu (Dennis Boone) - 2024-09-30 00:54 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] rbowman <bowman@montana.com> - 2024-09-29 20:55 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-09-29 23:15 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] Pancho <Pancho.Jones@proton.me> - 2024-09-30 10:24 +0100
Re: TeX and Pascal [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-09-30 21:19 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] Louis Krupp <lkrupp@invalid.pssw.com.invalid> - 2024-09-30 15:44 -0600
Re: TeX and Pascal [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-09-30 23:42 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] Pancho <Pancho.Jones@proton.me> - 2024-10-01 15:57 +0100
Re: TeX and Pascal [was Re: The joy of FORTRAN] The Natural Philosopher <tnp@invalid.invalid> - 2024-10-01 16:14 +0100
Re: TeX and Pascal [was Re: The joy of FORTRAN] Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2024-10-01 16:37 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-01 21:49 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] The Natural Philosopher <tnp@invalid.invalid> - 2024-10-02 10:56 +0100
Re: TeX and Pascal [was Re: The joy of FORTRAN] Peter Flass <peter_flass@yahoo.com> - 2024-10-02 18:07 -0700
Re: Recursion [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-03 01:22 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-01 21:48 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] Louis Krupp <lkrupp@invalid.pssw.com.invalid> - 2024-10-03 03:04 -0600
Re: TeX and Pascal [was Re: The joy of FORTRAN] rbowman <bowman@montana.com> - 2024-10-03 18:35 +0000
Re: C operator precedence rules Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-03 21:54 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] Peter Flass <peter_flass@yahoo.com> - 2024-10-03 16:34 -0700
Re: TeX and Pascal [was Re: The joy of FORTRAN] Bob Eager <news0009@eager.cx> - 2024-10-04 10:59 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] The Natural Philosopher <tnp@invalid.invalid> - 2024-10-04 12:48 +0100
Re: TeX and Pascal [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-04 20:10 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] Peter Flass <peter_flass@yahoo.com> - 2024-10-01 15:39 -0700
Re: TeX and Pascal [was Re: The joy of FORTRAN] Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2024-10-02 00:06 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] The Natural Philosopher <tnp@invalid.invalid> - 2024-10-02 11:34 +0100
Re: TeX and Pascal [was Re: The joy of FORTRAN] Rich Alderson <news@alderson.users.panix.com> - 2024-10-02 15:48 -0400
Re: TeX and Pascal [was Re: The joy of FORTRAN] The Natural Philosopher <tnp@invalid.invalid> - 2024-10-03 10:33 +0100
Re: TeX and Pascal [was Re: The joy of FORTRAN] The Natural Philosopher <tnp@invalid.invalid> - 2024-10-02 11:30 +0100
Re: TeX and Pascal [was Re: The joy of FORTRAN] Pancho <Pancho.Jones@proton.me> - 2024-10-03 08:59 +0100
Re: Multiple Inheritance [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-01 21:47 +0000
Re: Multiple Inheritance [was Re: The joy of FORTRAN] Pancho <Pancho.Jones@proton.me> - 2024-10-03 08:58 +0100
Re: Multiple Inheritance [was Re: The joy of FORTRAN] Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2024-10-03 15:34 +0000
Re: Multiple Inheritance [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-03 21:52 +0000
Re: Multiple Inheritance [was Re: The joy of FORTRAN] rbowman <bowman@montana.com> - 2024-10-04 03:46 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] John Ames <commodorejohn@gmail.com> - 2024-09-30 11:09 -0700
Re: TeX and Pascal [was Re: The joy of FORTRAN] John Ames <commodorejohn@gmail.com> - 2024-09-30 13:52 -0700
Re: TeX and Pascal [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-09-30 21:27 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] John Ames <commodorejohn@gmail.com> - 2024-09-30 15:00 -0700
Re: TeX and Pascal [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-09-30 23:21 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] John Ames <commodorejohn@gmail.com> - 2024-09-30 16:27 -0700
Re: TeX and Pascal [was Re: The joy of FORTRAN] The Natural Philosopher <tnp@invalid.invalid> - 2024-10-01 13:43 +0100
Re: TeX and Pascal [was Re: The joy of FORTRAN] John Ames <commodorejohn@gmail.com> - 2024-10-01 07:58 -0700
Re: TeX and Pascal [was Re: The joy of FORTRAN] The Natural Philosopher <tnp@invalid.invalid> - 2024-10-01 16:15 +0100
Re: TeX and Pascal [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-01 21:51 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] John Ames <commodorejohn@gmail.com> - 2024-10-01 14:59 -0700
Re: TeX and Pascal [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-01 22:17 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] John Ames <commodorejohn@gmail.com> - 2024-10-01 16:07 -0700
Re: TeX and Pascal [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-02 00:54 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] John Ames <commodorejohn@gmail.com> - 2024-10-01 07:57 -0700
Re: TeX and Pascal [was Re: The joy of FORTRAN] antispam@fricas.org (Waldek Hebisch) - 2024-10-03 00:17 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] Mike Spencer <mds@bogus.nodomain.nowhere> - 2024-09-30 21:22 -0300
Re: TeX and Pascal [was Re: The joy of FORTRAN] rbowman <bowman@montana.com> - 2024-10-01 01:31 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-10-01 01:38 +0000
Re: TeX and Pascal [was Re: The joy of FORTRAN] John Ames <commodorejohn@gmail.com> - 2024-10-01 07:43 -0700
Re: TeX and Pascal [was Re: The joy of FORTRAN] Pancho <Pancho.Jones@proton.me> - 2024-09-30 10:19 +0100
Re: TeX and Pascal [was Re: The joy of FORTRAN] moi <findlaybill@blueyonder.co.uk> - 2024-09-30 23:28 +0100
csiph-web