On Tuesday, 24 July 2018 at 13:23:32 UTC, 12345swordy wrote:
On Tuesday, 24 July 2018 at 09:54:37 UTC, Ecstatic Coder wrote:
So, at the moment, I don't see how you can EASILY convince
people to use BetterC for C/C++ use cases, like programming
games, microcontrollers, etc.
*Extremely powerful meta programming that blows c++ meta
programming out of the water
*Clean readable syntax
*No header file nonsense
*Standard keyword for ASM if you really need the performance
boost.
*Compiler enforce memory safety.
-Alex
I know.
And D's builtin strings/arrays/slices/maps/etc and automatic
memory deallocation are part of what makes D a better alternative
to C++ too.
I'm just saying : Kotlin Native automated memory management
through automated reference counting with cycle detection.
That solution may have its own drawbacks over a "true"
traditional garbage collector, but its main advantage is that
it's transparent. Business as usual...
And IF you need to disable the cycle collector, you can still
have a TRUE and COMPLETE replacement for C++, by simply using
weak references to avoid strong reference cycles, just like in
the provided standard library.
Best of both worlds, no need for a "nogc" standard library, as it
IS nogc by default, while still providing exactly the same
functionalities as in the "gc" standard library...