[erlang-questions] Nested Case Statements v.s. multiple functions

Richard A. O'Keefe ok@REDACTED
Wed Sep 27 07:46:44 CEST 2017



On 26/09/17 6:48 PM, zxq9 wrote:

> Also, macros and parse transforms are the work of the devil... in most cases.

About 21 years ago, I wrote a note for RMIT SERC called
"Delenda Est Preprocessor".

If Erlang had
  - data declarations like
    New_Line = $\n.
    The_Answer = 42.
  - abstract patterns
  - frames (oh wait, maps will do!)
  - the ability to bind one module tightly to
    answer enabling cross-module inlining
then there were would be very little for the preprocessor to do.

I don't really believe that Scheme macros are the work of
the devil.  C macros, now...





More information about the erlang-questions mailing list