-
Notifications
You must be signed in to change notification settings - Fork 311
Unexpected behavior of Object doMessage #438
Copy link
Copy link
Open
Labels
bugSomething isn't working as intendedSomething isn't working as intendedcriticalCrashes, data loss, or fundamentally broken behaviorCrashes, data loss, or fundamentally broken behaviorduplicateAlready tracked elsewhereAlready tracked elsewhereparserLexer, parser, operator shufflingLexer, parser, operator shuffling
Metadata
Metadata
Assignees
Labels
bugSomething isn't working as intendedSomething isn't working as intendedcriticalCrashes, data loss, or fundamentally broken behaviorCrashes, data loss, or fundamentally broken behaviorduplicateAlready tracked elsewhereAlready tracked elsewhereparserLexer, parser, operator shufflingLexer, parser, operator shuffling
I'm trying to implement a basic JSON parser in Io to get rid of parson dependency. It looks like a very easy task, but I faced a problem, which just blows my mind... Here's the code:
When I use this "library" in a script:
I get:
As you can see the Sequence's
:method is called when it should and the message which this method gets is correct, but for some reason the result is always the last message in the chain. It's ignoring everything I return fromSequence :. I tried a hard-coded value as well but no luck. What am I doing wrong?