Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions and Ideas #61

Open
RickyS opened this issue Jul 6, 2014 · 0 comments
Open

Questions and Ideas #61

RickyS opened this issue Jul 6, 2014 · 0 comments

Comments

@RickyS
Copy link

RickyS commented Jul 6, 2014

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant