7 ms·
> We also have the classic example of PHP with numerous not safe stdlib ways to use mysql. I think it goes without saying that emulating PHP is rarely a good d
by kergonath 27d ago
> We also have the classic example of PHP with numerous not safe stdlib ways to use mysql.
I think it goes without saying that emulating PHP is rarely a good decision.
- VorpalWay 27d agoDon't forget C++ where large parts of the standard library are unusable (regex is slow and unfixable) or soft deprecated (dont use iostreams for formatting, use std::format, etc). No, I prefer what rust is doing. It suits a system programming language. Which is what Rust is.
- pjmlp 27d agoRegex does the job for most business software, iostreams is alright, using them since 1993, std::format is cool provided one has control over their compiler version,...
- VorpalWay 27d agoRegex is absolutely not suitable for most use cases that I have come across. Iostreams formatting is awful, especially if you care about internationalization (which is very common). Not sure what the issue with std::format would be here, you would have to elaborate. Obviously you need to specify a minimum version to have support for it at all.
- pjmlp 27d agoIt works good enough for stuff I would be using Java or .NET for. Not every application requires internationalisation, especially server code or internal company tools.