Hacker News new | ask | show | jobs
by WalterBright 3 days ago
My favorite was the regex engine that was implemented using C++ operator overloading. The author was very proud of it, but you could not tell what code was regex code and what code was math code.

I went to some lengths with D to discourage such abusive operating overloading practice.

1 comments

Thank you. I don't even use D, but appreciate all efforts to socialize sane programming practices.
Thank you for the kind words! I recently did a presentation at Yale where I felt free to ridicule some insane practices, and how to do a better job.

Slides:

https://walterbright.com/ElegantD.pdf