3 ms·
This is somewhat against the zen of python, but then again "Beautiful is better than ugly." :)
by bthornbury 10y ago
This is somewhat against the zen of python, but then again "Beautiful is better than ugly." :)
- wybiral 10y agoIt's a neat concept. I also agree that the lambda statement in Python is ugly, but actually using this in a Python project feels wrong. Not that you couldn't call it a "transpiler" and consider it a new dialect of Python... Hey, the Javascript community gets away with it, why not Python? Also, while I can't think of a normal use case, it is possible that someone intended to use (a, b, c) > (x, y, z) as a tuple comparison. ">>" or something might be safer.
- bthornbury 10y agoI agree in it's current state it's more of a novelty than something intended for serious use. (Imagine debugging someone else's code with source rewriting 0_0) Especially with the discrepancy you pointed out with tuple comparison. I think that it could get to a state where if the debugging was figured out, and the abstractions/usability became nicer that it could be have some serious use though. Mostly the intention with this was to get something working, that can be iterated on if it makes sense.