Hi, one of my most common struggles when writing macros, is that it is not easy 
to compose the export marker `*` in my macro's syntax. For example:
    
    
    activations:
          act sigmoid*:
             fn: 1 / (1 + exp(-x))
             deriv: fx * (1 - fx)
          act tanh*:
             fn: tanh(x)
             deriv: (let t = tanh(fx); 1 - t * t)
       # Fails to parse, with error: expected expression but found ':'
    
    
    Run

This is because postfix operators are not allowed and `*` is a special case. So 
a workaround is to use an infix notation: `act* tanh:`. Is there anything else 
that can be done about it? What's your opinions? 

Reply via email to