named arguments, string interpolation, please stop.

Guillaume Piolat first.name at gmail.com
Fri Jan 12 03:13:58 UTC 2024


On Friday, 12 January 2024 at 01:21:32 UTC, H. S. Teoh wrote:
>
> The only way a library author can deal with this mess is (1) 
> write in the most restricted language subset, i.e., betterC + 
> @nogc, so that it's usable by everybody. But the GC crowd will 
> be unlikely to use it, because it will lack the conveniences 
> they're accustomed to, the API will have manual memory 
> management paraphrenalia that doesn't fit well with the rest of 
> user code. Plus this is also a much higher bar for the library 
> author, so you're further limiting the already small number of 
> people who are writing D libraries.  Or (2) be opinionated and 
> write a GC-using library, in which case the betterC / @nogc 
> people won't use it. Either alternative leads to ecosystem 
> fragmentation. Or write a @nogc library but the betterC people 
> won't use it.  Etc..
>

Interesting post thanks. Describes the situation very well.
I think more escape hatches (@localnogc?) may help with the 
delegate situation you related.


More information about the Digitalmars-d mailing list