Talula
If you think C++ could be changed so much then they would never come up with C#
Ludovic 'Archivist'
Talula
If you want to claim it's a "Functional" language, well it's not, if you claim you use it like a functional language... maybe I don't know.
Talula
It was invented to add OOP to C.
Pavel
It's discussion about nothing, isn't it?
Who cares how something is named (it doesn't change the idea).
Ludovic 'Archivist'
Talula
Ludovic 'Archivist'
Ludovic 'Archivist'
Just like saying "ww2 is Germans killing a bunch of people"
Ludovic 'Archivist'
Also, C++ is not the name of a language
Ludovic 'Archivist'
It is the name of a family of languages
Ludovic 'Archivist'
With incremental changes to it
Ludovic 'Archivist'
Ludovic 'Archivist'
This is a bit more detailed
Pavel
Do you understand that you started from usage, then jump from that to idealogy (actually interpretations), then to history and naming, which has no relation with the original topic?
Talula
In 1985, Stroustrup's reference to the language entitled The C++ Programming Language was published
Talula
Same... no change...
Talula
In 1985, Stroustrup's reference to the language entitled The C++ Programming Language was published. That same year, C++ was implemented as a commercial product.
Ludovic 'Archivist'
Ludovic 'Archivist'
Talula
There were no incremnetal changes till the language was published... yes after pulishing there were changes.
Talula
Ludovic 'Archivist'
Ludovic 'Archivist'
Not to mention that those iterations would no longer compile on any compiler nowadays
Ludovic 'Archivist'
And not to mentions the other non backward compatible C++ 2.0
Ludovic 'Archivist'
Talula
Nothing from that time will compile on today's compiler...
Talula
Ludovic 'Archivist'
Monads in C++ are a thing whenever you use them or prefer to use design patterns
Ludovic 'Archivist'
Prove it.
auto maybe_fd = [] (int i) -> std::optional<int> { return i!=0?i:nullopt;} ;
Talula
algebraic data types & pattern matching?
Talula
partial function applications (requires implicit closures in general)?
Talula
Type inference (despite what people call "type inference" in C++ land it's a far shot from what you get with Hindley/Milner a la ML or Haskell)?
Talula
Tail calls (some compilers can optimise some limited cases of tail self-recursion, but there is no guarantee, and the language is actively hostile to the general case (pointers to the stack, destructors, and all that))?
Talula
Garbage collection (you can use Boehm's conservative collector, but it's no real substitute and rather unlikely to coexist peacefully with third-party code)?
Talula
And when was that added?
Ludovic 'Archivist'
Talula
Pattern matching... does not exist in C++
Ludovic 'Archivist'
However they are more verbose to use than in Haskell
Ludovic 'Archivist'
Ludovic 'Archivist'
It however is more limited than in most languages
Ludovic 'Archivist'
It is planned to be added more formally in next versions
Ludovic 'Archivist'
Talula
Ludovic 'Archivist'
Ludovic 'Archivist'
Most do
Talula
Lisp, Haskel, Erlang.
Ludovic 'Archivist'
Nothing forbids a standard c++ library to be garbage collected
Anonymous
😶 can anyone show me how we can find a digit in a Number in CPP
Like to check if 3 is present or not in 46748327 this number
Ludovic 'Archivist'
Talula
0
Ludovic 'Archivist'
Talula
Also, Lisp is also OOP
The Common Lisp Object System (CLOS) is the facility for object-oriented programming which is part of ANSI Common Lisp. CLOS is a powerful dynamic object system which differs radically from the OOP facilities found in more static languages such as C++ or Java.
Ludovic 'Archivist'
Ludovic 'Archivist'
Ludovic 'Archivist'
Ludovic 'Archivist'
And you do not need to store the actual string
Parra
Parra
Anonymous
Talula
Parra
Parra
at least Ludovic understands my point
Parra
and I respect his opinion