Improve Syntax: extern "lib" is kinda out-of-language #20006
Labels
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
Milestone
Extracted from #19999:
Right now, we have a lot of linking or compilation modifiers as postfixes, except for the library the linker will search in. This library is an optional string-literal parameter to the
extern
keyword/modifier:This kinda feels clunky and doesn't really fit everything else, especially considering that
linksection()
already is on the right, but alsoalign()
, which does modify the symbol linkage as well, and, if accepted, alsolinkname
:If we now move the linked library also to the right, we gain consistency and remove a weird syntactical property:
Another benefit is that we prevent confusion with the omnipresent
extern "C"
from C++The text was updated successfully, but these errors were encountered: