Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why isn FontForge written in C++ (or Why C++ is not my favorite language)?

0
Posted

Why isn FontForge written in C++ (or Why C++ is not my favorite language)?

0

I’ve been a little surprised to be asked this question, I had not realized my choice of language needed justification, but it appears to do so… Basically because I don’t find object-oriented practices helpful in most cases, because I find C++ far too complex and badly designed, and because I can’t debug it easily. • I grew up with SIMULA and dabbled with SmallTalk and found after a few years that there were very few problems where an object oriented approach seemed natural to me. In most cases it just seemed to impose unneeded complexities on the problem. • The semantics of a C++ program cannot be specified. The compiler is free to generate temporaries as it wishes. In C this is not a problem, but in C++ the creation of a temporary can involve calling a constructor and a destructor which may have untold side-effects. I find this frightening. • The order of execution of external constructors is unspecified. I have seen many inexplicable bugs caused by this • I find it extremely diffic

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123