Phobos 3 Discussion Notes - 02-01-2024
Atila Neves
atila.neves at gmail.com
Mon Feb 5 14:38:56 UTC 2024
On Saturday, 3 February 2024 at 12:53:34 UTC, Paul Backus wrote:
> On Saturday, 3 February 2024 at 03:49:54 UTC, Adam Wilson wrote:
>> [...]
>
> Obviously we are not going to get all of Phobos to work with
> BetterC, but significant chunks of it already do, and there's a
> good deal more that could be considered low-hanging fruit.
>
> I think the right approach here is to try to make code
> BetterC-compatible when we can, and to at least keep BetterC
> compatibility in mind as a "nice-to-have" goal (but not a
> requirement) when doing API design. For example, if the only
> thing keeping a function from being BetterC-compatible is that
> it uses the GC to allocate memory for an error message, it's
> probably worth a little bit of extra effort to either get rid
> of that GC dependency, or provide a `version (D_BetterC)`
> alternative.
I think our goal is to make `-betterC` obsolete. As in: if you
don't use the feature, you don't pay for it, and it's implicit.
More information about the Digitalmars-d
mailing list