Fun project, I've always wanted to write web stuff in python.<p>However I think it is a mistake to go 95% of the way towards imitation. Either you go 100% as to provide compatibility, or you distinguish yourself enough to not cause confusion.<p>I'd much rather have compatibility with real python code, than constructs such as 'do..while' and '[4 til 9]'.<p>I must admit inline 'def():'s are nice though.
I am not a fan of any pre-compiler. But, this looks better.
I don't like "do while loop" though. I am not sure what prevents the author to make it something like:<p><pre><code> do while(a):
print('This loop will run at least once')
</code></pre>
And how about using ES6 generators for Python's generator?
Pythonic JS... this made my day. As someone coming from Python/Django to JS/Node I'd love to see this gaining momentum. (sorry ruby guys, I never liked your girl and her caffeinated cousin)
This looks interesting. I've not used any pre-compilers for JavaScript before, but I may give this a go. Presumably this could be used in the context of node.js, but then really, you might just as well fire up Flask or Django ;)
I don't really understand how the example could be considered to have a "cleaner, more readable syntax" than the equivalent CoffeeScript. It's perhaps fair to say that it presents a syntax that is more familiar to Python developers.<p>`self` is also a poor choice of name for a reference to "the object itself": <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/self" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/API/Window/self</a>
Nice job here.<p>But to be honest I'm not a pre-compiler advocate.<p>Javascript is a beautiful language once you stop blaming it for what it wasn't designed for. I feel that pre-compilers just divide the community up and unfortunately I've seen people going for CoffeeScript for example without even trying to grasp the subtleties of Vanilla JS.
> pre-compiler for JavaScript<p>Could it be that the official term is "altjs compiler" (?) [1]<p>[1] <a href="http://smurfpandey.github.io/altjs/" rel="nofollow">http://smurfpandey.github.io/altjs/</a>
This looks interesting. I am learning python at the moment by making a flask application. It is pretty neat to see how they transpile things like list comprehensions into javascript. I'm currently stuck in angular land right now though, and as much as I would want to try this out refactoring all of my current code sounds like a pain in the arse.
I really like that I can stay in python for everything! That's why I've recently chosen RapydScript to power SilverFlask, a Flask CMS I'm working on as a side project. Really simplifies development and speeds it up.
As much as a love Python, JS really isn't that bad. Seems to me like you could become competent with JS (at least for simple frontend tasks) in the time it would take to familiarize yourself with Rapydscript.
I presume this is meant to be pronounced 'rapidscript' but the 'y' there makes the first bit sound like 'rape-y', which is probably not what you want in a project name :(
Please stahp with the js transpiler spam if youwant to wriTe js just do it , its not that hards. Certainly easier than wrting lang a and thEn having to troubleshoot the js anyways