Recent

Author Topic: ways to avoid begin-end’s?  (Read 5861 times)

MarkMLl

  • Hero Member
  • *****
  • Posts: 7419
Re: ways to avoid begin-end’s?
« Reply #45 on: June 01, 2024, 08:40:02 pm »
Well, Mark, we have = and :=...

I know, and we don't have chained assignments.

TBH, I favour == and := with = being an error in all circumstances.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 500
Re: ways to avoid begin-end’s?
« Reply #46 on: June 01, 2024, 08:42:09 pm »
Perhaps the forum could use a topic category called "Matters of Style" or "Pascal style."  The conversations in the area are always interesting. 

MarkMLl

  • Hero Member
  • *****
  • Posts: 7419
Re: ways to avoid begin-end’s?
« Reply #47 on: June 01, 2024, 09:16:24 pm »
Perhaps the forum could use a topic category called "Matters of Style" or "Pascal style."  The conversations in the area are always interesting.

True. However I'd warn that somewhere (possibly here, possibly on CIX) I've seen an inexperienced user who was unable to distinguish between style and syntax: I forget the detail but he tried to insist that the compiler should be rejecting an EOL in a context he didn't expect.

I'd also like to reiterate: if a language (or its devotees) relies on the avoidance of a style which is syntactically valid in order to detect potential problems, then it's badly broken.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018