3 ms·
“mapping plain functions → JSON schemas” In general I’ve found it’s much better in C++ to be verbose and plain rather than succinct and elegant. Javascript an
by fsloth 1y ago
“mapping plain functions → JSON schemas”
In general I’ve found it’s much better in C++ to be verbose and plain rather than succinct and elegant.
Javascript and python lack typing so being pithy&clever in those languages has entirely different implications than in C++.
“How can I express this in the most basic, unsurprising and plainspoken C++” is usually the right question to ask. “How can I make this more elegant” is a question better suited for other languages imho.
The best C++ API when in doubt is a C style API.
- N_Lens 1y agoAgreed! C++ is a powerful language but full of footguns.