Click here to Skip to main content
15,891,981 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.

 
AnswerRe: Less / Neater code vs Readability / Understanding Pin
Nelek31-Jul-20 0:08
protectorNelek31-Jul-20 0:08 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
Jacquers31-Jul-20 0:13
Jacquers31-Jul-20 0:13 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
Nelek31-Jul-20 0:31
protectorNelek31-Jul-20 0:31 
AnswerRe: Less / Neater code vs Readability / Understanding Pin
Daniel Pfeffer31-Jul-20 0:10
professionalDaniel Pfeffer31-Jul-20 0:10 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
Jacquers31-Jul-20 0:14
Jacquers31-Jul-20 0:14 
AnswerRe: Less / Neater code vs Readability / Understanding Pin
OriginalGriff31-Jul-20 0:22
mveOriginalGriff31-Jul-20 0:22 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
Jacquers31-Jul-20 0:24
Jacquers31-Jul-20 0:24 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
dandy7231-Jul-20 2:59
dandy7231-Jul-20 2:59 
OriginalGriff wrote:
I don't think it's as obvious what the precise scope of the variable is and where it gets disposed.


This. Oh, so much this.

To me the curly braces remove all ambiguity and they tell me exactly what the original coder had in mind. Without any brace, could the disposable variable be disposed of earlier than the end of the function? Probably. Where? I don't know, and now I have to study the code more closely to determine that. This syntax is trying to tell me it shouldn't matter to me. And I disagree with that.
AnswerRe: Less / Neater code vs Readability / Understanding Pin
Marc Clifton31-Jul-20 1:22
mvaMarc Clifton31-Jul-20 1:22 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
Jacquers31-Jul-20 1:57
Jacquers31-Jul-20 1:57 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
Marc Clifton31-Jul-20 2:26
mvaMarc Clifton31-Jul-20 2:26 
AnswerRe: Less / Neater code vs Readability / Understanding PinPopular
ZurdoDev31-Jul-20 1:29
professionalZurdoDev31-Jul-20 1:29 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
User 1106097931-Jul-20 1:41
User 1106097931-Jul-20 1:41 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
Jacquers31-Jul-20 1:58
Jacquers31-Jul-20 1:58 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
User 1106097931-Jul-20 2:42
User 1106097931-Jul-20 2:42 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
obermd31-Jul-20 3:38
obermd31-Jul-20 3:38 
GeneralRe: Less / Neater code vs Readability / Understanding Pin
dandy7231-Jul-20 3:43
dandy7231-Jul-20 3:43 
AnswerRe: Less / Neater code vs Readability / Understanding Pin
Sander Rossel31-Jul-20 1:35
professionalSander Rossel31-Jul-20 1:35 
AnswerRe: Less / Neater code vs Readability / Understanding Pin
Eddy Vluggen31-Jul-20 2:15
professionalEddy Vluggen31-Jul-20 2:15 
AnswerRe: Less / Neater code vs Readability / Understanding Pin
obermd31-Jul-20 3:37
obermd31-Jul-20 3:37 
GeneralCCC OTD 2020-07-31 - SOLVED Pin
Randor 30-Jul-20 22:46
professional Randor 30-Jul-20 22:46 
GeneralRe: CCC OTD 2020-07-31 Pin
Richard MacCutchan30-Jul-20 23:12
mveRichard MacCutchan30-Jul-20 23:12 
GeneralRe: CCC OTD 2020-07-31 Pin
Randor 30-Jul-20 23:25
professional Randor 30-Jul-20 23:25 
GeneralRe: CCC OTD 2020-07-31 Pin
musefan30-Jul-20 23:33
musefan30-Jul-20 23:33 
JokeRe: CCC OTD 2020-07-31 Pin
Daniel Pfeffer30-Jul-20 23:59
professionalDaniel Pfeffer30-Jul-20 23:59 

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.