samvv / OldZenLibraries

Programming in C++ with ease of mind
https://zenlibraries.github.io/
Apache License 2.0
0 stars 0 forks source link

Clean up template metaprogramming library #2

Open samvv opened 4 years ago

samvv commented 4 years ago

Now that the template metaprogramming library works, it should get a major cleanup.

  1. As much base functions as possible should be able to receive a parameter pack
  2. The monolithic header file should be split up in multiple files so it becomes easier to update a single sub-component
  3. Much more members should be documented
  4. More uses of static_assert(...) should be added to provide better error messages (#1)
  5. Flesh out the meta-evaluator to only support lambda expressions and template applications
samvv commented 4 years ago

After some investigation, we are not going to carry out (2) and (5). (2) requires too much work right now for no real good reason and (5) limits the expressiveness of the language.