Click here to Skip to main content
15,914,905 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: So the WookieTab is dead, and I've received it's replacement. Pin
dandy7215-Aug-19 3:40
dandy7215-Aug-19 3:40 
GeneralRe: So the WookieTab is dead, and I've received it's replacement. Pin
Rage14-Aug-19 6:19
professionalRage14-Aug-19 6:19 
GeneralRe: So the WookieTab is dead, and I've received it's replacement. Pin
User 842014-Aug-19 6:58
User 842014-Aug-19 6:58 
GeneralRe: So the WookieTab is dead, and I've received it's replacement. Pin
Rage14-Aug-19 9:24
professionalRage14-Aug-19 9:24 
GeneralRe: So the WookieTab is dead, and I've received it's replacement. Pin
OriginalGriff14-Aug-19 9:23
mveOriginalGriff14-Aug-19 9:23 
GeneralRe: So the WookieTab is dead, and I've received it's replacement. Pin
DRHuff14-Aug-19 6:39
DRHuff14-Aug-19 6:39 
GeneralRe: So the WookieTab is dead, and I've received it's replacement. Pin
Nick Ruppert15-Aug-19 2:14
Nick Ruppert15-Aug-19 2:14 
Questionwould you bother implementing a visitor pattern for this? Pin
honey the codewitch14-Aug-19 4:21
mvahoney the codewitch14-Aug-19 4:21 
so i have this parse tree hierarchy.

any time I want I can go

C#
foreach(var node in root.FillClosure()) {
   // do a thing
}


which iterates over every node, starting at the root.

this makes the inner part of the loop pretty much the same as a Visit method

would you bother implementing a visitor pattern on top of this?

most parser do, which is why I ask.
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.

AnswerRe: would you bother implementing a visitor pattern for this? Pin
BillWoodruff14-Aug-19 4:33
professionalBillWoodruff14-Aug-19 4:33 
GeneralRe: would you bother implementing a visitor pattern for this? Pin
honey the codewitch14-Aug-19 4:36
mvahoney the codewitch14-Aug-19 4:36 
AnswerRe: would you bother implementing a visitor pattern for this? Pin
PIEBALDconsult14-Aug-19 5:56
mvePIEBALDconsult14-Aug-19 5:56 
AnswerOT Pin
Rage14-Aug-19 6:22
professionalRage14-Aug-19 6:22 
GeneralRe: OT Pin
honey the codewitch14-Aug-19 6:27
mvahoney the codewitch14-Aug-19 6:27 
GeneralRe: OT Pin
Rage14-Aug-19 6:36
professionalRage14-Aug-19 6:36 
GeneralRe: OT Pin
honey the codewitch14-Aug-19 6:38
mvahoney the codewitch14-Aug-19 6:38 
GeneralRe: OT Pin
Gary Wheeler14-Aug-19 7:14
Gary Wheeler14-Aug-19 7:14 
GeneralRe: OT Pin
BillWoodruff14-Aug-19 7:02
professionalBillWoodruff14-Aug-19 7:02 
GeneralRe: OT Pin
honey the codewitch14-Aug-19 9:40
mvahoney the codewitch14-Aug-19 9:40 
GeneralRe: OT Pin
honey the codewitch14-Aug-19 6:39
mvahoney the codewitch14-Aug-19 6:39 
GeneralRe: OT Pin
Rage14-Aug-19 9:22
professionalRage14-Aug-19 9:22 
RantOh, isn't this nice Pin
Gary Wheeler14-Aug-19 3:54
Gary Wheeler14-Aug-19 3:54 
GeneralRe: Oh, isn't this nice Pin
glennPattonWork314-Aug-19 4:00
professionalglennPattonWork314-Aug-19 4:00 
GeneralRe: Oh, isn't this nice Pin
OriginalGriff14-Aug-19 4:02
mveOriginalGriff14-Aug-19 4:02 
GeneralRe: Oh, isn't this nice Pin
Maximilien14-Aug-19 4:01
Maximilien14-Aug-19 4:01 
GeneralRe: Oh, isn't this nice Pin
Gary Wheeler14-Aug-19 4:07
Gary Wheeler14-Aug-19 4:07 

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.