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

POSIX printf() actually supports positional arguments:

https://www.godbolt.org/z/xG15M5

Both clang and gcc support this, but unfortunately not the Microsoft C compiler.

PS: actually, it does, just not in the normal printf call: https://docs.microsoft.com/en-us/cpp/c-runtime-library/print...



D also supports POSIX positional arguments: https://dlang.org/library/std/format/formatted_write.html




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

Search: