3 ms·
What you say is true. Unfortunately I don't think you can trivially switch it to a C++ compiler, because they use {[FOO] = ...} initialization. It would be coo
by nyanpasu64 5y ago
What you say is true. Unfortunately I don't think you can trivially switch it to a C++ compiler, because they use {[FOO] = ...} initialization.
It would be cool (not necessarily useful, probably not a good use of time) to rewrite it in Rust while keeping the dependency count in the single digits. It would be helpful to contributors to add architectural documentation.
- jcelerier 5y agoClang supports it in C++ mode but not GCC sadly :(
- ncmncm 5y agoC++ has a version of that notation, with minor (and IMHO unnecesssary) restrictions that probably impose no hardship.
- nyanpasu64 5y agoC++20 added dot initialization, which has been supported in MSVC/GCC/Clang for over a year now. No released version of the C++ standard supports array index initialization, and jcelerier says Clang but not GCC supports it as an extension.