News for hackers. Stuff that matters.
Re:Macros in Python by lihaoyi on Monday May 13, 2013 @12:28PM (#5699597)
It definitely looks funny from a python point of view; it's inspired by ADTs and OCaml. Perhaps it would be better to leave them to be accessed via a qualified name (e.g. `List.Nil`, `List.Cons`). This is all up for debate.
Re:Macros in Python by mbreese on Monday May 13, 2013 @03:40PM (#5700934)
A qualified name makes more sense to me. Having them exposed as top-level classes just doesn't feel right, given how they are defined.
Re:Macros in Python by smilekzs on Tuesday May 14, 2013 @03:15AM (#5703405)
True. The way it is now is counter-intuitive.