Click here to Skip to main content
15,887,485 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Curly braces Pin
Jörgen Andersson12-Dec-22 2:56
professionalJörgen Andersson12-Dec-22 2:56 
GeneralRe: Curly braces Pin
den2k8812-Dec-22 3:04
professionalden2k8812-Dec-22 3:04 
GeneralRe: Curly braces Pin
Nelek12-Dec-22 4:05
protectorNelek12-Dec-22 4:05 
GeneralRe: Curly braces Pin
Single Step Debugger12-Dec-22 4:05
Single Step Debugger12-Dec-22 4:05 
GeneralRe: Curly braces Pin
Nelek12-Dec-22 4:06
protectorNelek12-Dec-22 4:06 
GeneralRe: Curly braces Pin
godfetish12-Dec-22 4:08
godfetish12-Dec-22 4:08 
GeneralRe: Curly braces Pin
k505412-Dec-22 5:02
mvek505412-Dec-22 5:02 
GeneralRe: Curly braces Pin
trønderen12-Dec-22 5:14
trønderen12-Dec-22 5:14 
godfetish wrote:
BEGIN just doesn't look right at the end of the line!
I really love 'It just ain't done!' arguments!

BEGIN is perfectly fine at the end of the line. In my Pascal days, that was the established standard. Note that Pascal switch statements - CASE value OF - uses the OF keyword to start the case list. I never saw anyone put OF on a separate line. It is matched by an END, just like BEGIN. So why would there be a difference between BEGIN ... END and CASE OF ... END? Or would you write Pascal code as
Pascal
CASE i 
OF
    0 : Write('zero');
    1 : Write('one');
    2 : Write('two');
    3,4,5,6,7,8,9,10: Write('?')
END;
Note that if you put BEGIN and OF at separate lines, they are still at the end of the line Smile | :)
GeneralRe: Curly braces Pin
Amarnath S12-Dec-22 4:48
professionalAmarnath S12-Dec-22 4:48 
GeneralRe: Curly braces Pin
den2k8812-Dec-22 4:54
professionalden2k8812-Dec-22 4:54 
GeneralRe: Curly braces Pin
trønderen12-Dec-22 5:17
trønderen12-Dec-22 5:17 
GeneralRe: Curly braces Pin
Single Step Debugger12-Dec-22 4:58
Single Step Debugger12-Dec-22 4:58 
GeneralRe: Curly braces Pin
Gerry Schmitz12-Dec-22 6:08
mveGerry Schmitz12-Dec-22 6:08 
GeneralRe: Curly braces Pin
Gary R. Wheeler12-Dec-22 13:13
Gary R. Wheeler12-Dec-22 13:13 
GeneralRe: Curly braces Pin
Jeremy Falcon14-Dec-22 12:16
professionalJeremy Falcon14-Dec-22 12:16 
GeneralRe: Curly braces Pin
Gary R. Wheeler24-Dec-22 9:13
Gary R. Wheeler24-Dec-22 9:13 
GeneralRe: Curly braces Pin
BernardIE531713-Dec-22 4:28
BernardIE531713-Dec-22 4:28 
GeneralRe: Curly braces Pin
Jeremy Falcon14-Dec-22 12:14
professionalJeremy Falcon14-Dec-22 12:14 
GeneralWSO CCC OTD 2022-12-12 Pin
OriginalGriff11-Dec-22 21:32
mveOriginalGriff11-Dec-22 21:32 
GeneralRe: WSO CCC OTD 2022-12-12 Pin
pkfox11-Dec-22 21:35
professionalpkfox11-Dec-22 21:35 
GeneralRe: WSO CCC OTD 2022-12-12 Pin
OriginalGriff11-Dec-22 21:54
mveOriginalGriff11-Dec-22 21:54 
GeneralRe: WSO CCC OTD 2022-12-12 Pin
pkfox11-Dec-22 22:15
professionalpkfox11-Dec-22 22:15 
GeneralRe: WSO CCC OTD 2022-12-12 - we have a winner! Pin
OriginalGriff11-Dec-22 22:25
mveOriginalGriff11-Dec-22 22:25 
GeneralRe: WSO CCC OTD 2022-12-12 - we have a winner! Pin
pkfox11-Dec-22 22:29
professionalpkfox11-Dec-22 22:29 
GeneralRe: WSO CCC OTD 2022-12-12 - we have a winner! Pin
ChandraRam11-Dec-22 22:35
ChandraRam11-Dec-22 22:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.