Forum > Beginners

ways to avoid begin-end’s?

<< < (10/10)

MarkMLl:

--- Quote from: Thaddy on June 01, 2024, 04:29:36 pm ---Well, Mark, we have = and :=...

--- End quote ---

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

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

MarkMLl

Curt Carpenter:
Perhaps the forum could use a topic category called "Matters of Style" or "Pascal style."  The conversations in the area are always interesting. 

MarkMLl:

--- Quote from: Curt Carpenter 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.

--- End quote ---

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

Navigation

[0] Message Index

[*] Previous page

Go to full version