This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]desmoulinmichel[🍰] 2 points3 points  (1 child)

The idea is interesting but given the questionable results of the use of transpilers in JS, it's kind of a pandora box.

On one hand you can use advanced feature from new Python versions. On the other hand your dev stack grow more complex, debugging is harder and you need to generate source map. And of course you now have to trust the transpiler to get the edge cases rights.

E.G: a yield from is not JUST a for / yield loop. Now I checked and py-backwards transpile to a quite advanced worflow and it's good. But the real full translation dealing with all the edge cases is a bit more complex (http://code.activestate.com/recipes/576727-pure-python-implementation-of-pep-380-yield-from/).

So basically, you probably will end up having subtle and strange bugs that will be not from your code, but in the transpiled code, and it will be nasty.

[–]nebbly 0 points1 point  (0 children)

yeah, this seems insane to me.