The peek(  

  RSS

Jerry
(@jerry-2)
Active Member
Joined:1 month  ago
Posts: 6
11/05/2018 2:56 am  

I have the following code

new channel in {
    for( str <! channel) {
        @"stdout"!(*str)
    } |
    channel!("Hello World")
}

When I run it in RNode 0.3.1 Eval mode, it raises an error

Error: coop.rchain.rholang.interpreter.RholangCLI$SyntaxError: Unrecoverable Syntax Error

I see other sugar like <= and !! is implemented.

It is because <! sugar is not implemented?


ReplyQuote
MichaelBirch
(@michaelbirch)
Member Moderator
Joined:3 months  ago
Posts: 23
11/05/2018 12:45 pm  

Correct, it has not yet been implemented. However, it is easy enough to obtain the same behaviour without the sugar; simply do a normal linear read and then return the value to the channel in the continuation, along with anything else you want to do.


ReplyQuote
  
Working

Please Login or Register