Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sklogic
on Feb 11, 2016
|
parent
|
context
|
favorite
| on:
A MOS6502 assembler implemented as a Rust macro
Macros should never be ugly. There are multiple ways of using compile-time metaprogramming in a nice and clean way.
Maybe even in Rust, although I have not tried it yet.
evincarofautumn
on Feb 12, 2016
[–]
If your macro is ugly, but it makes your code pretty, it might mean you’ve successfully sequestered some ugliness, which is probably a good thing.
sklogic
on Feb 12, 2016
|
parent
[–]
Of course. But there is no need to write ugly macros. Any macro of any complexity can be written in a nice and clean way.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Maybe even in Rust, although I have not tried it yet.