C's Biggest Mistake on Hacker News
Ecstatic Coder
ecstatic.coder at gmail.com
Tue Jul 24 13:52:20 UTC 2018
On Tuesday, 24 July 2018 at 12:13:27 UTC, Atila Neves wrote:
> On Tuesday, 24 July 2018 at 11:53:35 UTC, Ecstatic Coder wrote:
>> On Tuesday, 24 July 2018 at 10:40:33 UTC, Dukc wrote:
>>> On Monday, 23 July 2018 at 15:06:16 UTC, Ecstatic Coder wrote:
>>>> [...]
>>>
>>> They already work, except for the concatenation operator
>>> because it obviously requires the GC. And converiting a
>>> pointer from C code to D is easy, because you can slice
>>> pointers just like arrays -it's just that it won't be bounds
>>> checked.
>>
>> Nice.
>>
>> But if you want D to be REALLY appealing to a majority of C++
>> developers, you'd better provide them with the FULL D
>> experience.
>>
>> And unfortunately, using builtin arrays/strings/slices/maps in
>> the usual way is probably a big part for it.
>>
>> Don't forget that concatenating strings in C++ is perfectly
>> ALLOWED in C++, WITHOUT using a GC...
>
> Same in D, it's just that nobody's bothered writing a string
> class/struct.
>
> Atila
Indeed...
More information about the Digitalmars-d
mailing list