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

 
JokeRe: Sometimes I Wonder .... Pin
Cp-Coder4-Dec-19 0:42
Cp-Coder4-Dec-19 0:42 
AnswerRe: Sometimes I Wonder .... Pin
lopatir4-Dec-19 2:19
lopatir4-Dec-19 2:19 
JokeIntroducing my latest parser project - "James" Pin
honey the codewitch3-Dec-19 23:05
mvahoney the codewitch3-Dec-19 23:05 
GeneralRe: Introducing my latest parser project - "James" Pin
Daniel Pfeffer3-Dec-19 23:30
professionalDaniel Pfeffer3-Dec-19 23:30 
GeneralRe: Introducing my latest parser project - "James" Pin
honey the codewitch3-Dec-19 23:36
mvahoney the codewitch3-Dec-19 23:36 
GeneralRe: Introducing my latest parser project - "James" Pin
lopatir4-Dec-19 2:34
lopatir4-Dec-19 2:34 
GeneralRe: Introducing my latest parser project - "James" Pin
honey the codewitch4-Dec-19 2:36
mvahoney the codewitch4-Dec-19 2:36 
Rantpostfix increment and decrement can get bent Pin
honey the codewitch3-Dec-19 22:50
mvahoney the codewitch3-Dec-19 22:50 
In order to implement these operators internally requires the creation of a variable to hold an intermediary result.

C#
// internally ++i is
i=i+1


versus

C#
// internally i++ is
var iPrev = i;
i=i+1;
// iPrev, not i contains the returned value, since it's postfix


This is murder to implement in an expression parser.

All for what? So some clowns can use a less efficient version of an increment/decrement operator?

is ++<target> really so much worse that <target>++?

In fact, whoever decided on having both? I'd like to have a long conversation with them. Sigh | :sigh:
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: postfix increment and decrement can get bent Pin
F-ES Sitecore3-Dec-19 23:02
professionalF-ES Sitecore3-Dec-19 23:02 
GeneralRe: postfix increment and decrement can get bent Pin
honey the codewitch3-Dec-19 23:08
mvahoney the codewitch3-Dec-19 23:08 
GeneralRe: postfix increment and decrement can get bent Pin
F-ES Sitecore3-Dec-19 23:19
professionalF-ES Sitecore3-Dec-19 23:19 
GeneralRe: postfix increment and decrement can get bent Pin
honey the codewitch3-Dec-19 23:26
mvahoney the codewitch3-Dec-19 23:26 
GeneralRe: postfix increment and decrement can get bent Pin
F-ES Sitecore3-Dec-19 23:41
professionalF-ES Sitecore3-Dec-19 23:41 
GeneralRe: postfix increment and decrement can get bent Pin
honey the codewitch3-Dec-19 23:42
mvahoney the codewitch3-Dec-19 23:42 
GeneralRe: postfix increment and decrement can get bent Pin
F-ES Sitecore3-Dec-19 23:49
professionalF-ES Sitecore3-Dec-19 23:49 
GeneralRe: postfix increment and decrement can get bent Pin
Richard Deeming4-Dec-19 0:19
mveRichard Deeming4-Dec-19 0:19 
GeneralRe: postfix increment and decrement can get bent Pin
honey the codewitch4-Dec-19 0:27
mvahoney the codewitch4-Dec-19 0:27 
GeneralRe: postfix increment and decrement can get bent Pin
Richard MacCutchan3-Dec-19 23:28
mveRichard MacCutchan3-Dec-19 23:28 
GeneralRe: postfix increment and decrement can get bent Pin
honey the codewitch3-Dec-19 23:36
mvahoney the codewitch3-Dec-19 23:36 
GeneralRe: postfix increment and decrement can get bent Pin
F-ES Sitecore3-Dec-19 23:40
professionalF-ES Sitecore3-Dec-19 23:40 
GeneralRe: postfix increment and decrement can get bent Pin
Richard MacCutchan4-Dec-19 0:09
mveRichard MacCutchan4-Dec-19 0:09 
GeneralRe: postfix increment and decrement can get bent Pin
Sander Rossel3-Dec-19 23:12
professionalSander Rossel3-Dec-19 23:12 
GeneralRe: postfix increment and decrement can get bent Pin
honey the codewitch3-Dec-19 23:14
mvahoney the codewitch3-Dec-19 23:14 
GeneralRe: postfix increment and decrement can get bent Pin
Sander Rossel3-Dec-19 23:17
professionalSander Rossel3-Dec-19 23:17 
GeneralRe: postfix increment and decrement can get bent Pin
honey the codewitch3-Dec-19 23:19
mvahoney the codewitch3-Dec-19 23:19 

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.