SnakeScript? (CoffeeScript for Python)
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
Michal Hantl <michal.ha... @gmail.com>
Date: Sun, 29 Jan 2012 03:42:57 -0800 (PST)
Local: Sun, Jan 29 2012 6:42 am
Subject: SnakeScript? (CoffeeScript for Python)
Hey guys, Is or was there an attempt to do the same that CoffeeScript does for JS for Python?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Mark Hahn <m... @hahnca.com>
Date: Sun, 29 Jan 2012 12:12:19 -0800
Local: Sun, Jan 29 2012 3:12 pm
Subject: Re: [coffeescript] SnakeScript? (CoffeeScript for Python)
Doesn't python already offer most coffeescript features? On Sun, Jan 29, 2012 at 3:42 AM, Michal Hantl <michal.ha... @gmail.com>wrote:
> Hey guys, > Is or was there an attempt to do the same that CoffeeScript does for JS > for Python?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Benjamin Gudehus <hasteb... @googlemail.com>
Date: Sun, 29 Jan 2012 21:25:03 +0100
Local: Sun, Jan 29 2012 3:25 pm
Subject: Re: [coffeescript] SnakeScript? (CoffeeScript for Python)
Not bad! It would be nice to have an easier syntax to define closures. Or some ruby-like expressions. I personally prefer simple old python syntax, but it could be a nice experiment to adapt some syntax sugar seen in CoffeeScript.
2012/1/29 Mark Hahn <m... @hahnca.com>
> Doesn't python already offer most coffeescript features?
> On Sun, Jan 29, 2012 at 3:42 AM, Michal Hantl <michal.ha... @gmail.com>wrote:
>> Hey guys, >> Is or was there an attempt to do the same that CoffeeScript does for JS >> for Python?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Mark Hahn <m... @hahnca.com>
Date: Sun, 29 Jan 2012 12:27:42 -0800
Local: Sun, Jan 29 2012 3:27 pm
Subject: Re: [coffeescript] SnakeScript? (CoffeeScript for Python)
Python adds sugar all the time. I'd ask for it in Python first. On Sun, Jan 29, 2012 at 12:25 PM, Benjamin Gudehus <hasteb... @googlemail.com
> wrote:
> Not bad! It would be nice to have an easier syntax to define closures.
> Or some ruby-like expressions.
> I personally prefer simple old python syntax, but it could be a nice > experiment to adapt some syntax sugar seen in CoffeeScript.
> 2012/1/29 Mark Hahn <m... @hahnca.com>
>> Doesn't python already offer most coffeescript features?
>> On Sun, Jan 29, 2012 at 3:42 AM, Michal Hantl <michal.ha... @gmail.com>wrote:
>>> Hey guys, >>> Is or was there an attempt to do the same that CoffeeScript does for JS >>> for Python?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Steve Howell <showel... @yahoo.com>
Date: Sun, 29 Jan 2012 12:48:14 -0800 (PST)
Local: Sun, Jan 29 2012 3:48 pm
Subject: Re: [coffeescript] SnakeScript? (CoffeeScript for Python)
I'd be shocked if some of the CS niceties ever got added to Python. I am a big fan of Python, but certain types of sugar just don't fit into its philosophy. People have asked for better ways to write anonymous functions in Python for as long as I can remember. I also doubt that optional parentheses in function calls would ever fly. Despite liking some CS features that aren't in Python, I couldn't imagine ever using a transcompiler for Python. Python doesn't have any major semantic gaps, and it has all the major syntax sugar that I want, such as indentation-based blocking, multi-line strings, etc.
To each his own, though. Python has a pretty long history--in general, if somebody's thought of it, I'm guessing somebody's done it.
>________________________________
> From: Mark Hahn <m
... @hahnca.com>
>To: coffeescript@googlegroups.com
>Sent: Sunday, January 29, 2012 12:27 PM
>Subject: Re: [coffeescript] SnakeScript? (CoffeeScript for Python)
>Python adds sugar all the time. I'd ask for it in Python first.
>On Sun, Jan 29, 2012 at 12:25 PM, Benjamin Gudehus <hasteb... @googlemail.com> wrote:
>Not bad! It would be nice to have an easier syntax to define closures. >>Or some ruby-like expressions.
>>I personally prefer simple old python syntax, but it could be a nice >>experiment to adapt some syntax sugar seen in CoffeeScript.
>>2012/1/29 Mark Hahn <m... @hahnca.com>
>>Doesn't python already offer most coffeescript features?
>>>On Sun, Jan 29, 2012 at 3:42 AM, Michal Hantl <michal.ha... @gmail.com> wrote:
>>>Hey guys, >>>> Is or was there an attempt to do the same that CoffeeScript does for JS for Python?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Michal Hantl <michal.ha... @gmail.com>
Date: Mon, 30 Jan 2012 15:33:37 -0800 (PST)
Local: Mon, Jan 30 2012 6:33 pm
Subject: Re: [coffeescript] SnakeScript? (CoffeeScript for Python)
Thank you all for replying. I just hacked together a demo. This is what I would e happy for start, just replacing self with @ and some cosmetic changes here and there.
I would love to have implicit return statements and blocks. For that I would need to actually parse and understand the code, so thats what I'll focus on next. So far this is as hacky as I can make it.
So far I am having fun with it. Would love to go self-brain surgery on this and implement SnakeScript in SnakeScript :D
Sn�mek obrazovky (2012-01-31 00:23:19).png
75K
Download
You must
Sign in before you can post messages.
You do not have the permission required to post.