On Wednesday, 30 November 2022 at 03:04:47 UTC, Basile B. wrote:

I have implemented that in [styx](https://gitlab.com/styx-lang/styx).

1. You have the type for dynamic arrays, called TypeRcArray, syntax is `Type[+]` 2. You have the type for slices (what you describe as a window), syntax is `Type[]` but it is mostly obtained using expressions, e.g `mySlice = myRcArray[lo .. hi]` or
`myStaticArray[lo .. hi]` or `myPointer[lo .. hi]`.

This sounded like a good idea but it [has appeared very quickly](https://styx-lang.gitlab.io/styx/type.html#noteonlifetime) that slices are not so useful...

Recently DIP1044 was published about enum and although we can use `with()` instead we waste time unnecessarily...

I've never tried it, but the feature shown below is not available in D! Why not such good things?

```d
enum Foo
{
     a0 = 1,
     a1
}

enum Bar: Foo
{
    a2 // 3
}
```

Thanks...

SDB@79

Reply via email to