Always put const at the beginning #19
Labels
code-generation
Involves generation of parser / serializer code
imperfection
A mostly cosmetic issue
tentative
Not yet decided if this should be done
To avoid errors, I have put the
const
keyword for references of uknown types to the safe spot after the type name. However, this is somewhat inconsistent and it is a general convention to have it at the beginning whenever possible. Since pointer and reference types are not supported and static array types do not use references (this part is resolved), I believe it would actually be safe to putconst
back at the beginning without changing anything else. It also needs to be updated in the standard library API's and the Readme file. Is it a good idea though? How about normalizing it the other way around (always puttingconst
in this position)?The text was updated successfully, but these errors were encountered: