3 ms·
Sure hygienic macro belongs to macro but saner. Mixin is not macro according to D authors. If you dig into Walter's past posts, perhaps you can find better exp
by teleforce 4y ago
Sure hygienic macro belongs to macro but saner.
Mixin is not macro according to D authors. If you dig into Walter's past posts, perhaps you can find better explanations there than mine.
You can have macro in any runtime for example Ruby language, and that's the main reason for the maxim "Rails is not Ruby". That's also the reason Ruby is so powerful and to create a similar feat in Java will be close to impossible [2]. But at what cost? That's why Python now is much more popular even though Ruby is much more powerful. You can, however, create Rails clone in D language without all the macro nonsense [3].
[1]Ruby Macros Explained:
https://codeburst.io/ruby-macros-18bb67e051c7 https://codeburst.io/ruby-macros-18bb67e051c7
[2]Stop Designing Languages. Write Libraries Instead:
http://lbstanza.org/purpose_of_programming_languages.html http://lbstanza.org/purpose_of_programming_languages.html
[3]Diamond CMS:
https://github.com/DiamondMVC https://github.com/DiamondMVC