r/cpp • • Dec 13 '19

The situation of std::embed...

https://thephd.github.io/full-circle-embed
238 Upvotes

160 comments sorted by

View all comments

57

u/stilgarpl Dec 13 '19

While the idea behind Circle sounds good, the syntax is terrible. Mixing \@meta keywords with runtime commands just looks like a lot of noise. constexpr sections looks much cleaner and I think compile time programming should extend what constexpr can do and not add another preprocessor.

std::embed sounds like a simple solution for a simple use case. Why can't we just leave like that?

10

u/curious_entiy_420 Dec 13 '19

Could not agree more.