Apologies in advance if I'm misunderstanding the purpose of proxies.
123 karma · joined August 14, 2018
Apologies in advance if I'm misunderstanding the purpose of proxies.
Const also has no bearing on lifetimes. Constexpr/consteval do, but those objects always have static lifetime so it's sort of irrelevant.
Const doesn't solve aliasing.
Managing the lifetime of referenced objects is something you always have to worry about in c++ anyway, lambdas don't change that.
This is not an article that is seriously advocating for cigarrette use.
EDIT: seriously, it's against the guidelines to ask "did you even read the article" but for real man, it's like the third sentence in the abstract.
If a compact columnar representation is what you're after to avoid having to repeat every field name in an array of objects (which CSV is good for) but you don't want to give up the ability to include metadata in your JSON, there are a ton of different ways for structure your document to solve this issue without inventing new document formats.
Also this example is unclear (possibly ambiguous?); how is "int" as a type for the "age" column distinguished from "street", "city", etc as what I assume are field names?