Click here to Skip to main content
15,891,204 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: Expression bodies vs Good Old Fashioned Functions Pin
Leo5620-Dec-21 23:57
Leo5620-Dec-21 23:57 
GeneralRe: Expression bodies vs Good Old Fashioned Functions Pin
dan!sh 20-Dec-21 22:11
professional dan!sh 20-Dec-21 22:11 
GeneralRe: Expression bodies vs Good Old Fashioned Functions Pin
MadGerbil21-Dec-21 1:47
MadGerbil21-Dec-21 1:47 
GeneralRe: Expression bodies vs Good Old Fashioned Functions Pin
rjmoses21-Dec-21 10:51
professionalrjmoses21-Dec-21 10:51 
GeneralRe: Expression bodies vs Good Old Fashioned Functions Pin
rjmoses21-Dec-21 10:54
professionalrjmoses21-Dec-21 10:54 
GeneralRe: Expression bodies vs Good Old Fashioned Functions Pin
englebart21-Dec-21 13:05
professionalenglebart21-Dec-21 13:05 
GeneralRe: Expression bodies vs Good Old Fashioned Functions Pin
Ryan Peden21-Dec-21 17:48
professionalRyan Peden21-Dec-21 17:48 
GeneralRe: Expression bodies vs Good Old Fashioned Functions Pin
Matt McGuire22-Dec-21 6:01
professionalMatt McGuire22-Dec-21 6:01 
I'm hoping it not a long term trend, or the debugging tools have to get better.

I can put a break on a function and inspect the variables as I step through the code, it gets a little trickier on expression bodies especially when working with large collections or arrays Frown | :(

I like the cleanliness of expression bodies, but at the same time sub expressions do tend to muddy up the readability.

Someone correct me if I'm mistaken, but once the code is compiled a expression body just gets translated into a function (like) code structure which is just a jump to address and then return as seen by the processer. I'll admit I've not looked into what happens too much under the hood with expression bodies in dotnet.
GeneralRe: CCC 20-12-2021 - Solution Pin
pkfox20-Dec-21 2:11
professionalpkfox20-Dec-21 2:11 
GeneralRe: CCC 20-12-2021 - Solution Pin
OriginalGriff20-Dec-21 2:17
mveOriginalGriff20-Dec-21 2:17 
GeneralRe: CCC 20-12-2021 - Solution Pin
pkfox20-Dec-21 3:14
professionalpkfox20-Dec-21 3:14 
GeneralRe: CCC 20-12-2021 - Solution Pin
OriginalGriff20-Dec-21 3:30
mveOriginalGriff20-Dec-21 3:30 
GeneralRe: CCC 20-12-2021 - Solution Pin
Rich Leyshon20-Dec-21 2:40
Rich Leyshon20-Dec-21 2:40 
GeneralRe: CCC 20-12-2021 - Solution Pin
OriginalGriff20-Dec-21 3:11
mveOriginalGriff20-Dec-21 3:11 
GeneralRe: CCC 20-12-2021 - Solution Pin
pkfox20-Dec-21 3:11
professionalpkfox20-Dec-21 3:11 
GeneralRe: CCC 20-12-2021 - Solution Pin
Rich Leyshon20-Dec-21 3:12
Rich Leyshon20-Dec-21 3:12 
GeneralRe: CCC 20-12-2021 - Solution Pin
OriginalGriff20-Dec-21 3:30
mveOriginalGriff20-Dec-21 3:30 
GeneralRe: CCC 20-12-2021 - Solution Pin
pkfox20-Dec-21 7:01
professionalpkfox20-Dec-21 7:01 
GeneralBest $2500 I ever spent. I'm actually happy with my PC PinPopular
honey the codewitch19-Dec-21 22:27
mvahoney the codewitch19-Dec-21 22:27 
GeneralRe: Best $2500 I ever spent. I'm actually happy with my PC Pin
Eddy Vluggen19-Dec-21 22:50
professionalEddy Vluggen19-Dec-21 22:50 
GeneralRe: Best $2500 I ever spent. I'm actually happy with my PC Pin
honey the codewitch19-Dec-21 22:51
mvahoney the codewitch19-Dec-21 22:51 
GeneralRe: Best $2500 I ever spent. I'm actually happy with my PC Pin
Eddy Vluggen19-Dec-21 23:12
professionalEddy Vluggen19-Dec-21 23:12 
GeneralRe: Best $2500 I ever spent. I'm actually happy with my PC Pin
honey the codewitch19-Dec-21 23:28
mvahoney the codewitch19-Dec-21 23:28 
GeneralRe: Best $2500 I ever spent. I'm actually happy with my PC Pin
charlieg20-Dec-21 3:43
charlieg20-Dec-21 3:43 
GeneralRe: Best $2500 I ever spent. I'm actually happy with my PC Pin
Eddy Vluggen20-Dec-21 5:31
professionalEddy Vluggen20-Dec-21 5:31 

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.