Click here to Skip to main content
14,490,077 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: Not a programming question, but... Pin
Mark_Wallace13-Jan-20 1:54
MemberMark_Wallace13-Jan-20 1:54 
AnswerRe: Not a programming question, but... Pin
theoldfool13-Jan-20 2:40
professionaltheoldfool13-Jan-20 2:40 
GeneralRe: Not a programming question, but... Pin
lopatir13-Jan-20 3:32
Memberlopatir13-Jan-20 3:32 
GeneralRe: Not a programming question, but... Pin
lw@zi 13-Jan-20 3:18
professional lw@zi 13-Jan-20 3:18 
GeneralRe: Not a programming question, but... Pin
Sander Rossel14-Jan-20 3:32
professionalSander Rossel14-Jan-20 3:32 
AnswerRe: Not a programming question, but... Pin
Dominic Burford13-Jan-20 3:50
professionalDominic Burford13-Jan-20 3:50 
AnswerRe: Not a programming question, but... Pin
BryanFazekas15-Jan-20 0:44
MemberBryanFazekas15-Jan-20 0:44 
GeneralOh no (Update: OH YEAH in my best kool aid man voice) Pin
honey the codewitch13-Jan-20 0:09
mvahoney the codewitch13-Jan-20 0:09 
I recently rewrote the hand rolled Slang parser to make it better.

That was successful. It parses all my test material, and faster than the two previous parsers.

However, I then began reintegrating it back into projects like Deslang and Parsley.

So far so good, except wait, this is curious.

Deslang is no longer able to resolve my LookAheadEnumerator code! (Not even part of the parsing process!)

Funny thing, it can't determine the runtime type for IEnumerator<t> (duh! it has no runtime type - it's an uninstantiated generic!)

I'm not confused as to why it doesn't work. What blows my mind is that it worked before.

I have no idea how. It shouldn't have, as far as I can tell.

And yet, I know it did, because if it didn't, Parsley couldn't even parse word one. LookAheadEnumerator sits right next to its black little heart.

I still have the old codebase, but it's non-trivial to find out why Deslang worked in this case. So much easier to trap error conditions than success

Update: I fixed it all and figured out the old magic. I just convinced myself that magic wouldn't work, but yes Ramona, you can call
typeof(IEnumerator<>).GetMembers()

and get a meaningful result

Update 2: in what was one of may the most hair raising migrations i've encountered since i left the professional fold, I've migrated all of BuildPack to use the new slang parser.

19 projects, all building successfully (which requires slang to work or these build tools error!)

so yay. If this blew up i don't know what i'd do.
Steve Wozniak is the only thing at Apple that isn't evil.


modified 13-Jan-20 7:34am.

GeneralRe: Oh no Pin
OriginalGriff13-Jan-20 0:11
mveOriginalGriff13-Jan-20 0:11 
GeneralRe: Oh no Pin
honey the codewitch13-Jan-20 1:11
mvahoney the codewitch13-Jan-20 1:11 
GeneralRe: Oh no Pin
Mark_Wallace13-Jan-20 0:13
MemberMark_Wallace13-Jan-20 0:13 
GeneralRe: Oh no Pin
honey the codewitch13-Jan-20 1:10
mvahoney the codewitch13-Jan-20 1:10 
GeneralThere are times when I hate updaters. Pin
OriginalGriff12-Jan-20 23:39
mveOriginalGriff12-Jan-20 23:39 
GeneralRe: There are times when I hate updaters. Pin
phil.o12-Jan-20 23:45
mvephil.o12-Jan-20 23:45 
GeneralRe: There are times when I hate updaters. Pin
Mark_Wallace13-Jan-20 0:19
MemberMark_Wallace13-Jan-20 0:19 
GeneralRe: There are times when I hate updaters. Pin
Eddy Vluggen13-Jan-20 1:40
professionalEddy Vluggen13-Jan-20 1:40 
GeneralRe: There are times when I hate updaters. Pin
OriginalGriff13-Jan-20 1:52
mveOriginalGriff13-Jan-20 1:52 
GeneralRe: There are times when I hate updaters. Pin
Eddy Vluggen13-Jan-20 2:04
professionalEddy Vluggen13-Jan-20 2:04 
GeneralRe: There are times when I hate updaters. Pin
musefan13-Jan-20 2:47
Membermusefan13-Jan-20 2:47 
GeneralRe: There are times when I hate updaters. Pin
Eddy Vluggen13-Jan-20 4:46
professionalEddy Vluggen13-Jan-20 4:46 
GeneralRe: There are times when I hate updaters. Pin
Member 798912213-Jan-20 22:21
MemberMember 798912213-Jan-20 22:21 
GeneralRe: There are times when I hate updaters. Pin
Eddy Vluggen14-Jan-20 1:26
professionalEddy Vluggen14-Jan-20 1:26 
GeneralRe: There are times when I hate updaters. Pin
Member 798912214-Jan-20 3:02
MemberMember 798912214-Jan-20 3:02 
GeneralRe: There are times when I hate updaters. Pin
Eddy Vluggen14-Jan-20 3:10
professionalEddy Vluggen14-Jan-20 3:10 
GeneralRe: There are times when I hate updaters. Pin
dandy7213-Jan-20 3:59
Memberdandy7213-Jan-20 3: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.