Comment by jimberlage 1 year ago Would an array language without the terseness, but with hygienic macros, fit the same niche? 2 comments jimberlage Reply rak1507 1 year ago I don't see how it could, the terseness is the point. I'm not sure how a macro system could really help. Did you have a specific idea in mind? jimberlage 1 year ago 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 costHaving 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.
rak1507 1 year ago I don't see how it could, the terseness is the point. I'm not sure how a macro system could really help. Did you have a specific idea in mind? jimberlage 1 year ago 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 costHaving 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.
jimberlage 1 year ago 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 costHaving 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.
I don't see how it could, the terseness is the point. I'm not sure how a macro system could really help. Did you have a specific idea in mind?
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.