short answer no.

This is the parsing tradeoff between curlies and indentation syntax.

There are more functional syntaxes available, that you might like, e.g.
    
    
    import zero_functional
    for i in 0..10:
      if i mod 2==0:
        echo i
    
    0..10 --> filter(it mod 2 == 0) --> foreach(echo it)
    
    
    Run

Reply via email to