There's nothing wrong with c++

There's nothing wrong with c++.

Attached: download.jpg (433x455, 42K)

It just works.

Brave but true. Most people who hate on it aren't using it properly

This, I can't go back to C without STL and boost. Fuck that.

There's a lot wrong with it, but there's no suitable alternative.
>muh java
Verbose, enforces POO, and owned by a megacorp. Not a suitable alternative.
>muh C#
Owned by a megacorp. Not a suitable alternative.
>muh rust
Owned by ideologues. Not a suitable alternative.
>muh C
Lacks anonymous functions, associative arrays with dynamic sets of keys, function overloading, non-member operator overloading, name scoping, a type algebra (which C++ doesn't have either, but the STL somewhat approximates), and compile-time function calls. Not a suitable alternative.
>muh python
Not a compiled language. Not a suitable alternative.
>muh go
No type algebra. Not a suitable alternative.
>muh haskell
Not performant enough. Not a suitable alternative.
>muh lithp
Hideous to the extent of being unusable. Not a suitable alternative.
>muh nim
>muh Dlang
>muh [obscure functional shitlang]
Not well known enough. Not a suitable alternative

yes there is. inhereted C legacy and compatibility with ancient versions.
C++ standard doesn't specify too many things only because C doesn't (e.g. implementation of signed integers, right shift, ...)
There is too many insane workarounds in type system to deal with NULL constant, ofc introducing several pitfalls.

Way too lax declaration syntax. Nearly everything is valid declaration.

I personally dislike no syntax for r-value reference arguments for caller, this can visually hide mutability.

Ever, buils too sucks donkey balls. Headers make it nearly impossible to implement incremental compilation in correct and elegant way.

Poor quality of life language.

>you need extreme performance
Use C
>you don't need it
Use C/Lua, C/Python or even PHP for all I care, C++ is only decent for game dev

Basically this. As flawed as Sepples is, there is simply no language right now that can do everything it can as well, or better.
Luckily, the language is slowly improving, and the latest standards feel definitely more polished.

If you need extreme performance, C++ not only matches C, but it can potentially even beat it. All the additional information given to the compiler allows it to potentially perform better optimizations.
And for scientific computing, Fortran is still outmatched. Some things, like the no-aliasing property, also allow for more optimization.

What's "wrong". There are things I miss from higher-level languages like Lua or Python that I wish I could also use in C++, because C++ is an infinitely better language for projects that arent limited to those languages and surpass a few KLoC.

Namely:
>Easy to use stackful coroutines
>lazy comprehensions
>Remove C automatic type casting
>Easily overridable concepts (make new integer-like class, be able to register it as an "Integer". Associate type information with type, even for builtins (int::MIN, int::BITS, etc.).
I could probably think of other stuff

autistic C fa/g/s on suicide watch

The C Programming Language

Attached: TheCProgrammingLanguage.jpg (379x499, 27K)

a sane build system would be great

ocaml is better

how so?

type inference, parametric polymorphism, pattern matching, garbage collection

>garbage collection

Noob question. Does declaring a var such as
unsigned short int varname: 2;
states that the var can be defined within the 0-2 range afterwards? I saw such a declaration but Im not sure of this since Im a noob.

*As a struct attribute

There is nothing wrong about the C in C++. The ++ part is utter trash though

>owned by people i do not like
this does not change what you're allowed to do with it user, just saying

I love it, it just works and doesn't push an ideology/paradigm on its users.

The only multi-paradigm programming language in existence.
>MUH LEGACY
Fucking retard zoomers try to make a benefit into a bad thing. I can include files written 40 years ago into my build and it just works.

How about Julia then?

>nothing wrong
>next generation proprietary memory allocation techniques.
STRINGS, VECTORS, STL, BOOST
all this shit slow as f-ck
INSTEAD OF USING NAMSPASES CREATE MUH OBJECTS
then use em for creating memory leaks everevere

>no-aliasing
what is `restrict`

The problem with C++ is that none of its features are
>bug-free in the standard
>bug-free in common implementations
>well-integrated with other features
>orthogonal in capabilities
>able to serve their purpose without use of other broken, poorly-integrated features

the C programming language.