News for hackers. Stuff that matters.
Re:Macros in Python by lmm on Monday May 13, 2013 @12:41PM (#5699694)
Well yes; the code is clearly the work of someone who uses and likes scala. My point was: the library seems designed to let you write "scala in python"; wouldn't it be better to use scala when you want scala syntax, and write more idiomatic python when using python?
Re:Macros in Python by jnhnum1 on Monday May 13, 2013 @01:07PM (#5699880)
Yes, probably if you're starting from scratch. But I think in general it's good to have a flexible language which lets you write code in any reasonable style. Hopefully this library (the AST transformation part, not the specific macros) is making Python even more Pythonic! Although I suspect Guido would disagree with me