News for hackers. Stuff that matters.
Re:Arthur Whitney releases an open-source K with MIT license by jimberlage on Sunday June 02, 2024 @03:32PM (#40556661)
The thought was - if I have a long piece of code repeated, and I want it to be shorter, I can

- Use a language that minimizes the code to write

- Use a helper function, maybe at some runtime cost

- Use a macro, turning a short piece of code into a longer one, at a compile-time cost

Having a DTI (debt-to-income ratio) macro and a very short definition of DTI that looks similar everywhere in code sort of do the same thing.

There are no comments on this comment yet.