Doesn't GC, @nogc, safe, nothrown, * get in the way of getting things done?
ikod
geller.garry at gmail.com
Thu Jun 11 14:39:16 UTC 2020
On Thursday, 11 June 2020 at 12:43:00 UTC, aberba wrote:
> On Thursday, 11 June 2020 at 11:31:31 UTC, rikki cattermole
> wrote:
>> On 11/06/2020 11:28 PM, aberba wrote:
>>> In D we have so many programming models and I'm noticing this
>>> has become a problem in itself.
>>>
>>> For a example should a new HTTP library become safe, or
>>> unsafe, gc or no gc? Template or no templates, reference
>>> counting?? @live??
>>
>>
>> Client or server?
> When building an API for others to consume. HTTP is just an
> example.
>
>
>>
>> Each has a different answer.
I prefer my code be both @nogc and @safe. In case when library
depend on user code (like for example hashmap or lists) I let
language to infer library code properties from user-supplied
objects/structs.
More information about the Digitalmars-d
mailing list