Python Forum
Coconut - A Functional Language Which Compiles to Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coconut - A Functional Language Which Compiles to Python
#1
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) |> list
You can see the output, as well as the generated python code.
Reply
#2
What? Already a side effect in the first example?! This is very impure, functionally speaking.
Reply
#3
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).
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can Python be used as a macro language for excel, Word, etc.? CynthiaMoore 8 2,942 Sep-17-2022, 08:12 AM
Last Post: stevendaprano
  Python Has Major Problems as Language Dave 13 3,582 May-20-2022, 10:12 AM
Last Post: stevendaprano
  TIOBE Index for October 2021 - Python programming language number 1! Yoriz 1 1,508 Oct-07-2021, 11:35 PM
Last Post: Larz60+
  a new language based on python Skaperen 0 1,626 Nov-04-2020, 01:54 AM
Last Post: Skaperen
  Is python an interpreted language or a compiled language? GouravDas 1 1,983 Jun-23-2020, 10:38 AM
Last Post: Gribouillis
  what programming language to learn other than python in real mass-production product? Kai 1 2,082 Apr-12-2020, 04:40 AM
Last Post: Larz60+
  Chinese coding language ‘Mulan’ found to be Python fork buran 0 1,696 Jan-22-2020, 04:30 AM
Last Post: buran
  What is the best book for in-depth Python for advanced other-language programmers? user118967 1 2,617 Jun-04-2019, 07:56 PM
Last Post: snippsat
  Some Guy Today Told Me Python Isn't A Real Programming Language digitalmatic7 11 10,041 Dec-01-2017, 12:58 PM
Last Post: I_love_py
  Elements of functional programming in Python course: need beta testers Empty_Tuple 1 3,706 Mar-27-2017, 12:06 AM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020