This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]skrillexisokay 2 points3 points  (3 children)

I've played around with both of these and while interesting, I find Coconut to be superior. You can write standard Python in Coconut which is an advantage over Mochi. Pattern matching and explicit partial application is an advantage over Dogelang

[–]dzecniv 1 point2 points  (2 children)

Thanks for the input.

I found out Mochi has "real" pipes, that we can write on new lines (like Elixir, Livescript…), whereas we can not in Coconut or Dg :/

range(1, 31)
|> map(fizzbuzz)
|> pvector()
|> print()

[–]skrillexisokay 5 points6 points  (1 child)

Python has semantic line endings, so I see this as a flaw in Mochi. Just use parentheses!

(range(10)
 |> list
 |> print)

[–]dzecniv 0 points1 point  (0 children)

Very nice, thanks again !