I wonder if it's possible to create a macro which does something like that:
    
    
    object Tags = enum
    
    # here is the macro
    macro createTag(name: untyped): untyped = ...
    
    createTag(Tag1)
    createTag(Tag2)
    
    # === same as: ===
    object Tags = enum
        Tag1, Tag2
    
    
    Run

Reply via email to