clipperhouse/gen

Questions and Ideas

RickyS opened this issue · 0 comments

I think templating (parameterization) by type at the package/import level is better than at the function level. Although you seem to have not exactly done either, or both. In any case it looks much better than the C++ style of templates.

  1. How would one do a variety of in-order, depth-first et cetera walking of trees or graphs and putting elements or their pointers into a linear list or array? Or fed to a channel?
  2. I was imagining something like:
    import "redblack".{{Goober}} with Type {{Thing}} as Type Goober, const {{Max}} as 512
    This could have several things as parameters, which would be useful. Being careful not to have multiple generated packages with the same name.
  3. Supporting containers and algorithms but leaving aside meta-programming seems like the right idea.