Would it be worth adding shorthand syntax for binary operators used with pipe to convert to \n -> n ${binOp} input treating binary operators as function calls?
roundedScore = rawScore * 1000000.0
|> Num.round
|> Num.toF64
|> \n -> n / 1000000.0
vs
roundedScore = rawScore
|> * 1000000.0
|> Num.round
|> Num.toF64
|> / 1000000.0
The static dispatch proposal would already make this nicer:
roundedScore = rawScore
.mul(1000000.0)
.round()
.to_f64()
.div(1000000.0)
Right now you can do
roundedScore =
rawScore
|> Num.mul 10000000.0
|> Num.round
|> Num.toF64
|> Num.div 1000000.0
Last updated: Jun 16 2026 at 16:19 UTC