3 ms·
> It's close to impossible to get certain kinds of code correct in C, for instance, string parsing. Complete hyperbole. Nothing stops you from using a safe str
by Negitivefrags 10y ago
> It's close to impossible to get certain kinds of code correct in C, for instance, string parsing.
Complete hyperbole. Nothing stops you from using a safe string library in C.
> Also until pretty recently, C and C++ did not have a sane memory model
Technically true, but in practice it was rarely relevant.
- johncolanduoni 10y agoLockless structures is one of those rare cases where it is relevant. Not that I think Java is great for these (Java's atomics support is not great compared to C/C++ or even C#), but at least it's not the free-for-all that C/C++ used to enjoy.
- PeCaN 10y ago> Complete hyperbole. Nothing stops you from using a safe string library in C. Nothing technically stops you, it's just really hard. When even djb has suffered a string-processing-related bug¹ you can't reasonably expect to get string processing right all the time. Everyone thinks they can safely handle strings in C. It's like programmer chunibyo² or something. -- ¹ http://article.gmane.org/gmane.network.djbdns/13864 http://article.gmane.org/gmane.network.djbdns/13864 ² “8th-grader syndrome”; the sort of overly high opinions middle schoolers have of themselves