Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You could add some extra metadata descriptor to a function at a cost of space and checks... (like some functional languages do)


Good luck trying to convince C++ devs to add metadata to their binaries.

One reason why we have always to come up with our reflection solutions was because of this.


C++ adds metadata to binaries all the time, via name mangling (https://en.wikipedia.org/wiki/Name_mangling)

noexcept is part of the function type since C++17, so it will be encoded in binaries (https://stackoverflow.com/questions/46798456/handling-gccs-n...)


I doubt many would consider it metadata, specially since it goes away for all non public symbols on release builds.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: