On Thu, Feb 2, 2012 at 3:53 PM, andrea crotti <andrea.crott...@gmail.com> wrote: > 2012/2/2 Amirouche Boubekki <amirouche.boube...@gmail.com>: >> They are solution to write Python code that translates to javascript see >> this thread >> http://mail.python.org/pipermail/python-list/2011-November/1283110.html >> > > Mm I don't think it's what the OP is asking (unless I misunderstood...). > I think he wants to compile some syntax TO Python. > But I don't really see why you would something like this (if not for fun).
Maybe because you think that Python syntax could be improved upon -- for instance, Python with pattern-matching would be freaking awesome -- but at the same time you want to leverage Python's extensive ecosystem of libraries. So instead of creating your own brand-new language with no third party libraries whatsoever, you create one that just compiles down to regular Python. > Then how are you going to maintain the code? Maintain the compiled > code or the source? As with all compiled software, you maintain the input, not the output. > And proving that your translator is always correct That's what unit tests are for. Cheers, Ian -- http://mail.python.org/mailman/listinfo/python-list