3 ms·
It's a cool project, but I think it needs more examples on the front page. The class example might as well have been a namedtuple.
by thomasahle 11y ago
It's a cool project, but I think it needs more examples on the front page. The class example might as well have been a namedtuple.
- davidshepherd7 11y agoTheir argument [0] against namedtuple is that the namedtuple implementation is basically a hackier macro anyway (format a string then eval it). But I agree that it's not the most impressive example of what you can do with macros (see my other post). [0]: https://github.com/lihaoyi/macropy#skeletons-in-the-closet https://github.com/lihaoyi/macropy#skeletons-in-the-closet