4 ms·
> you can never really trust the compiler That's interesting, I've had the opposite experience; the few times I think I'm hitting a compiler bug it turns out t
by arc776 10y ago
> you can never really trust the compiler
That's interesting, I've had the opposite experience; the few times I think I'm hitting a compiler bug it turns out the compiler is telling what I'm doing wrong but I'm misinterpreting what it's saying. Not saying this applies to you though. Was this with recent versions?
Having said that, with templates and macros I very rarely get a c compilation error (ie; an actual bug), but these are usually because I'm accidentally doing something silly like recursing compile time generation. The compiler should catch these, and it's only rare cases it doesn't.
In my experience writing a game engine in opengl the language has been rock solid and very fast. For me, the core language has been absolutely fantastic and very reliable.
- wkd 10y agoI tried it a little bit 2 years ago. My experience was pretty much: 1) Encounter unexpected behaviour with standard features 2) Ask irc for help 3) Response: shrug must be a compiler bug
- arc776 10y agoAh, it's moved on quite a bit since then. I started using it around then too, but these days compiler errors are very rare indeed, in my experience anyway. Put it this way, the only compiler bugs I've had in the last year or so have been c gen errors, maybe two in the past year of pretty heavy use. All of those have been because I've been doing something silly with templates.