Jump to page: 1 2 3
Thread overview
Can we enable -preview=rvaluereference now?
Aug 13
Manu
Aug 13
Daniel N
Aug 13
ryuukk_
Aug 14
Manu
Aug 14
IchorDev
Aug 14
Manu
Aug 15
IchorDev
Aug 15
Manu
Aug 15
Dennis
Aug 15
Manu
Aug 14
cc
Aug 14
Manu
Aug 17
Manu
Aug 20
IchorDev
Aug 20
Juraj
Aug 20
IchorDev
August 13
So this preview has been available for more than 5 years.
Andrei did a keynote on it, and that seemed generally well received (if not
a little tepid, because not so many people care about this).
All the code I've written in the last 5 years doesn't work without this.
I have exercised this pretty extensively in whatever flavour of code it is
that I tend to write, and never had any problem. It works like it's meant
to.
I would severely struggle to return to a D without it.

Can we un-preview this now?


August 13
On Tuesday, 13 August 2024 at 04:23:15 UTC, Manu wrote:
> So this preview has been available for more than 5 years.
> Andrei did a keynote on it, and that seemed generally well received (if not
> a little tepid, because not so many people care about this).
> All the code I've written in the last 5 years doesn't work without this.
> I have exercised this pretty extensively in whatever flavour of code it is
> that I tend to write, and never had any problem. It works like it's meant
> to.
> I would severely struggle to return to a D without it.
>
> Can we un-preview this now?

yes, please!
August 13
On Tuesday, 13 August 2024 at 04:23:15 UTC, Manu wrote:
> So this preview has been available for more than 5 years.
> Andrei did a keynote on it, and that seemed generally well received (if not
> a little tepid, because not so many people care about this).
> All the code I've written in the last 5 years doesn't work without this.
> I have exercised this pretty extensively in whatever flavour of code it is
> that I tend to write, and never had any problem. It works like it's meant
> to.
> I would severely struggle to return to a D without it.
>
> Can we un-preview this now?

I have it enabled on all my projects

+1
August 13
On Tuesday, 13 August 2024 at 04:23:15 UTC, Manu wrote:
> So this preview has been available for more than 5 years.
> Can we un-preview this now?

https://github.com/dlang/dmd/pull/16778
August 13
On Tuesday, 13 August 2024 at 09:11:22 UTC, Nicholas Wilson wrote:
> On Tuesday, 13 August 2024 at 04:23:15 UTC, Manu wrote:
>> So this preview has been available for more than 5 years.
>> Can we un-preview this now?
>
> https://github.com/dlang/dmd/pull/16778

at the moment, no because it doesn't pass CI. Templates with `ref T` with `T==void` (misrecognised untyped lambdas e.g. `str => dst.put(str)` which should be a delegate) give e.g.:
    std/bigint.d(1280): Error: cannot have parameter of type `void`


August 15
Are our previews not tested for compatibility?
It kinda feels like preview features should surely get tested, such that we
know the preview represents a valid feature...

On Tue, 13 Aug 2024 at 20:46, Nicholas Wilson via Digitalmars-d < digitalmars-d@puremagic.com> wrote:

> On Tuesday, 13 August 2024 at 09:11:22 UTC, Nicholas Wilson wrote:
> > On Tuesday, 13 August 2024 at 04:23:15 UTC, Manu wrote:
> >> So this preview has been available for more than 5 years. Can we un-preview this now?
> >
> > https://github.com/dlang/dmd/pull/16778
>
> at the moment, no because it doesn't pass CI. Templates with `ref
> T` with `T==void` (misrecognised untyped lambdas e.g. `str =>
> dst.put(str)` which should be a delegate) give e.g.:
>      std/bigint.d(1280): Error: cannot have parameter of type
> `void`
>
>
>


August 14

On Tuesday, 13 August 2024 at 04:23:15 UTC, Manu wrote:

>

So this preview has been available for more than 5 years.
Andrei did a keynote on it, and that seemed generally well received (if not
a little tepid, because not so many people care about this).
All the code I've written in the last 5 years doesn't work without this.
I have exercised this pretty extensively in whatever flavour of code it is
that I tend to write, and never had any problem. It works like it's meant
to.
I would severely struggle to return to a D without it.

Can we un-preview this now?

Where can I find the spec/explanation/DIP for -preview=rvaluereference?
Is it different from https://github.com/dlang/DIPs/blob/master/DIPs/rejected/DIP1016.md ?

August 15
On Thu, 15 Aug 2024 at 00:32, cc via Digitalmars-d < digitalmars-d@puremagic.com> wrote:

> On Tuesday, 13 August 2024 at 04:23:15 UTC, Manu wrote:
> > So this preview has been available for more than 5 years.
> > Andrei did a keynote on it, and that seemed generally well
> > received (if not
> > a little tepid, because not so many people care about this).
> > All the code I've written in the last 5 years doesn't work
> > without this.
> > I have exercised this pretty extensively in whatever flavour of
> > code it is
> > that I tend to write, and never had any problem. It works like
> > it's meant
> > to.
> > I would severely struggle to return to a D without it.
> >
> > Can we un-preview this now?
>
> Where can I find the spec/explanation/DIP for
> -preview=rvaluereference?
> Is it different from
> https://github.com/dlang/DIPs/blob/master/DIPs/rejected/DIP1016.md ?
>

That's my first attempt... then Andrei gave a keynote advocating it (2019?), and it was promptly implemented under this preview flag.


August 14

On Tuesday, 13 August 2024 at 10:43:18 UTC, Nicholas Wilson wrote:

>

On Tuesday, 13 August 2024 at 09:11:22 UTC, Nicholas Wilson wrote:

>

On Tuesday, 13 August 2024 at 04:23:15 UTC, Manu wrote:

>

So this preview has been available for more than 5 years.
Can we un-preview this now?

https://github.com/dlang/dmd/pull/16778

at the moment, no because it doesn't pass CI. Templates with ref T with T==void (misrecognised untyped lambdas e.g. str => dst.put(str) which should be a delegate) give e.g.:
std/bigint.d(1280): Error: cannot have parameter of type void

That’s feels like the silliest reason to not un-preview something, and I bet if we just did it anyway then someone would actually fix that.

August 15
On Thu, 15 Aug 2024 at 01:41, IchorDev via Digitalmars-d < digitalmars-d@puremagic.com> wrote:

> On Tuesday, 13 August 2024 at 10:43:18 UTC, Nicholas Wilson wrote:
> > On Tuesday, 13 August 2024 at 09:11:22 UTC, Nicholas Wilson wrote:
> >> On Tuesday, 13 August 2024 at 04:23:15 UTC, Manu wrote:
> >>> So this preview has been available for more than 5 years. Can we un-preview this now?
> >>
> >> https://github.com/dlang/dmd/pull/16778
> >
> > at the moment, no because it doesn't pass CI. Templates with
> > `ref T` with `T==void` (misrecognised untyped lambdas e.g. `str
> > => dst.put(str)` which should be a delegate) give e.g.:
> >     std/bigint.d(1280): Error: cannot have parameter of type
> > `void`
>
> That’s feels like the silliest reason to not un-preview something, and I bet if we just did it anyway then someone would actually fix that.
>

I'm pretty sure Nick is in support of un-preview-ing it. That's just the state of it...


« First   ‹ Prev
1 2 3