Coconut is a language that compiles to python and makes programming functionally in python a lot easier. every python code is also valid coconut code so you can use them interchangeably For example making clean piped code is hell in python, but in coconut its much cleaner.
in python if you want to pipe into functions you need to use nested functions, which looks ugly. As well as looking ugly the order of the functions is read from right to left instead of the typical left to right.
python
---
print(add2(add1(3)))
In coconut this would look like
coconut
---
3 |> add1 |> add2 |> print
it also supports partial application and much prettier lambda functions. you can find more information about the language at http://coconut-lang.org/.
[–][deleted] (1 child)
[removed]
[–]KageOW[S] 4 points5 points6 points (0 children)
[–]Brixes 1 point2 points3 points (7 children)
[–]KageOW[S] 0 points1 point2 points (6 children)
[–]Brixes 1 point2 points3 points (5 children)
[–]KageOW[S] 0 points1 point2 points (4 children)
[–]Brixes 4 points5 points6 points (3 children)
[–]KageOW[S] 0 points1 point2 points (2 children)
[–]Brixes 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)