News for hackers. Stuff that matters.
[deleted]
Re:Macros in Python by lucian1900 on Monday May 13, 2013 @12:09PM (#5699479)
ADTs are a more general feature and one that I've missed in Python on more than one occasion.

I'm a little sad that the enum PEP got accepted, without them being actual ADTs.

Re:Macros in Python by lihaoyi on Monday May 13, 2013 @11:54AM (#5699378)
Author here. If you look at my github, you'll see I do use plenty of Scala!
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
Re:Macros in Python by jfb on Monday May 13, 2013 @11:24AM (#5699171)
Because it's hideous?