Coconut - A Functional Language Which Compiles to Python - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: News and Discussions (https://python-forum.io/forum-31.html) +--- Thread: Coconut - A Functional Language Which Compiles to Python (/thread-15097.html) |
Coconut - A Functional Language Which Compiles to Python - nilamo - Jan-03-2019 http://coconut-lang.org/ Valid python code is also valid coconut, so you could just add a little functional code to your project, then run it through the coconut compiler. Seems interesting. For a quick example, in the interpreter on the homepage, try this: range(10) |> map$(print) |> listYou can see the output, as well as the generated python code. RE: Coconut - A Functional Language Which Compiles to Python - Gribouillis - Jan-03-2019 What? Already a side effect in the first example?! This is very impure, functionally speaking. RE: Coconut - A Functional Language Which Compiles to Python - micseydel - Jan-04-2019 I got excited when I first saw this, but my god that is uuuugly code! I can't believe the creator is a Python person and created such heavy learning curve language (I would expect needlessly as well). |