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

> have macros for your editors that allow you to convert the "->" into an actual arrow.

Or, as suggested here, use language macros:

    #define → ->
https://lists.isocpp.org/std-proposals/2023/01/5485.php


This is not valid C, though. The characters allowed for identifiers are defined in Unicode Standard Annex #31, and those easily understood as operators, like arrows, are not included.


Unless you extend the language reference beyond the limits of #31, of course


Sorry, who is "you" in your sentence? The C workgroup?




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

Search: