The only syntax I would want from this thread is the:
    
    
    type Person = object
      name:  string
      group: string
    
    let b = Person("Jim", "alpha group") # => Person(name: "Jim", group: "alpha 
group")
    
    
    Run

Most of my `new*` function are just shortening of the default constructor. This 
would eliminate the dumbest of my code. See:

<https://github.com/treeform/pixie/blob/6c8d142cbf455226c07b3914c177d51fea090f8e/src/pixie/paints.nim#L33-L35>

<https://github.com/treeform/bumpy/blob/master/src/bumpy.nim#L24-L28>

<https://github.com/treeform/bumpy/blob/master/src/bumpy.nim#L97-L101>

<https://github.com/treeform/chroma/blob/master/src/chroma/colortypes.nim#L117-L185>

Reply via email to