free idea please steal, a goose inspired d preprocessor

Kapendev alexandroskapretsos at gmail.com
Fri Oct 23 03:28:45 UTC 2026


On Thursday, 22 October 2026 at 20:06:56 UTC, monkyyy wrote:
> background: goose won this bench mark there was twitter drama
> https://kostya.github.io/LangArena/ language benchmarks still 
> need to ask the languages for their best work. blah blah blah.
>
> A vibe coded language(ive heard using "only" a 200$ month 
> plan), added templates, nullables, sumtypes, and a opinionated 
> default slicable data structure that compiles down to C
>
> D still has the fundamental issues around slices being both a 
> dynamic array and reference, that spookily breaks unnecessarily.

By spooky, we mean explicitly using the `~` operator or `length 
=`? I like the idea of reducing types because it avoids function 
coloring. For example, when you accept `const(char)[]` you accept 
a lot of different things. Golang has also something similar with 
slices.

`T[>..256]` could be added to the standard library. It's a static 
array with a dynamic length field, and maybe a shrink left bool 
if you want to be cool like a Goose. Just having the dynamic 
length is fine for my use cases.


More information about the Digitalmars-d mailing list