News for hackers. Stuff that matters.
Re:10x Editor by pantalaimon on Tuesday January 03, 2023 @12:07PM (#34234234)
Does this also work for C?
Re:10x Editor by Zenity on Tuesday January 03, 2023 @02:02PM (#34236260)
Yes, with some minor limitations as it receives much less testing. I was using 10x with The Machinery (RIP) for some time and the developer was super responsive fixing any C-specific issues (and even added some TM specific features when I asked nicely). If more people start using it for C and report any issues found, it should get even better.

I would say it may even be better suited for C to some extent since that is a much simpler language with less chances for the parser to get confused by some obscure corner case. C++ really is the worst case scenario for a parsing engine, so once it works reliably for that, support for other languages should also become much more feasible.

Re:10x Editor by scombridae on Tuesday January 03, 2023 @02:57PM (#34237098)
It's hard to imagine a C programmer so professionally ignorant that he's yet to realize C++ is a superset of C.
Re:10x Editor by 10000truths on Tuesday January 03, 2023 @03:19PM (#34237401)
Not always. There are, for example, some compiler extensions that work with C but not C++.
Re:10x Editor by lowbloodsugar on Tuesday January 03, 2023 @03:37PM (#34237643)
>It's hard to imagine a C programmer so professionally ignorant that he's yet to realize C++ is a superset of C.

Ooof. restrict keyword enters the chat. C and C++ are two languages that evolve together, but one is not a superset of the other.

Re:10x Editor by MobiusHorizons on Tuesday January 03, 2023 @03:57PM (#34237934)
I see this comment a lot, but it's not true (at least not any more). Many valid C programs do not compile through the C++ compiler. The standards for C++ and C have deviated over the years.
Re:10x Editor by anthk on Wednesday January 04, 2023 @05:00AM (#34243880)
Ironically your comment it's the ignorant one. Try compiling a large C codebase with g++.
Re:10x Editor by stan680 on Wednesday January 04, 2023 @12:49PM (#34248875)
lots of good examples of why this is wrong here: https://floooh.github.io/2019/09/27/modern-c-for-cpp-peeps.h...