July 16, 2015 Re: Wait, what? What is AliasSeq? | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger | On 07/16/2015 03:45 PM, David Nadlinger wrote: > On Thursday, 16 July 2015 at 06:33:00 UTC, Jacob Carlborg wrote: >> On 2015-07-15 23:44, Timon Gehr wrote: >> >>> It should instead be acknowledged that there /should/ be no difference >>> in what three things can be passed to X(T...) and X(alias a, alias b, >>> alias c). The X(T...) if(T.length==k) pattern is ridiculous. >> >> I completely agree. > > Walter has agreed at DConf that this (i.e. alias not accepting basic > types) should be fixed. > > — David Ok, thanks! I have updated https://issues.dlang.org/show_bug.cgi?id=9029 from enhancement request to bug report. (It should be noted that there were many other reports of the same issue.) |
July 16, 2015 Re: Wait, what? What is AliasSeq? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ola Fosheim Grøstad | On 07/16/2015 07:35 AM, "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= <ola.fosheim.grostad+dlang@gmail.com>" wrote: > On Thursday, 16 July 2015 at 05:28:15 UTC, Ola Fosheim Grøstad wrote: >> std::forward_list > > Forget that one, that actually would be a single linked list… :P And in > C++ you also have "std::integer_sequence" for compile time parameters. > > But I think "sequence" implies that everything has the same type... > That common "type" is 'alias'. :-) |
July 16, 2015 Re: Wait, what? What is AliasSeq? | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger | On 07/16/2015 07:50 PM, David Nadlinger wrote:
> On Thursday, 16 July 2015 at 17:39:13 UTC, David Nadlinger wrote:
>> Yes, me. ;)
>
> (I should note that this is mainly because I'd really rather not have
> "Tuple" in the name because of first-hand experience in teaching
> beginners both on IRC and in person. And AliasSeq seems like the most
> likely candidate for this right now. I personally like Seq quite a bit
> too, but I'd rather not join that bikeshedding debate. —David)
Indeed. I will just write one of the following lines.
import std.meta:Seq=AliasSeq;
alias Seq(T...)=T;
|
July 16, 2015 Re: Wait, what? What is AliasSeq? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Timon Gehr | On Thursday, 16 July 2015 at 21:44:13 UTC, Timon Gehr wrote: > On 07/16/2015 07:35 AM, "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= <ola.fosheim.grostad+dlang@gmail.com>" wrote: [...] >> But I think "sequence" implies that everything has the same type... >> > > That common "type" is 'alias'. :-) *cringe* |
July 16, 2015 Re: Wait, what? What is AliasSeq? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On Thursday, 16 July 2015 at 15:50:15 UTC, Andrei Alexandrescu wrote: > On 7/15/15 8:49 PM, Mike wrote: >> 1. "AliasSeq" is no good as evident from the first post that started >> this thread > > I am egging my face for starting this. Can we please return to AliasSeq? -- Andrei https://github.com/D-Programming-Language/phobos/pull/3498 |
July 17, 2015 Re: Wait, what? What is AliasSeq? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike | On Thursday, 16 July 2015 at 23:54:30 UTC, Mike wrote:
> On Thursday, 16 July 2015 at 15:50:15 UTC, Andrei Alexandrescu wrote:
>> On 7/15/15 8:49 PM, Mike wrote:
>>> 1. "AliasSeq" is no good as evident from the first post that started
>>> this thread
>>
>> I am egging my face for starting this. Can we please return to AliasSeq? -- Andrei
>
> https://github.com/D-Programming-Language/phobos/pull/3498
Well this was 214 replies of wasted time...
|
July 17, 2015 Re: Wait, what? What is AliasSeq? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tofu Ninja | On Fri, Jul 17, 2015 at 12:08:41AM +0000, Tofu Ninja via Digitalmars-d wrote: > On Thursday, 16 July 2015 at 23:54:30 UTC, Mike wrote: > >On Thursday, 16 July 2015 at 15:50:15 UTC, Andrei Alexandrescu wrote: > >>On 7/15/15 8:49 PM, Mike wrote: > >>>1. "AliasSeq" is no good as evident from the first post that started this thread > >> > >>I am egging my face for starting this. Can we please return to AliasSeq? -- Andrei > > > >https://github.com/D-Programming-Language/phobos/pull/3498 > > Well this was 214 replies of wasted time... Doesn't that describe a disturbingly large number of threads on this forum? ;-) T -- If you compete with slaves, you become a slave. -- Norbert Wiener |
July 17, 2015 Re: Wait, what? What is AliasSeq? | ||||
---|---|---|---|---|
| ||||
Posted in reply to H. S. Teoh | On Friday, 17 July 2015 at 00:15:55 UTC, H. S. Teoh wrote:
> Doesn't that describe a disturbingly large number of threads on this forum? ;-)
>
>
> T
Yes...... yes it does......
|
July 17, 2015 Re: Wait, what? What is AliasSeq? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike | On Thursday, 16 July 2015 at 23:54:30 UTC, Mike wrote:
> On Thursday, 16 July 2015 at 15:50:15 UTC, Andrei Alexandrescu wrote:
>> On 7/15/15 8:49 PM, Mike wrote:
>>> 1. "AliasSeq" is no good as evident from the first post that started
>>> this thread
>>
>> I am egging my face for starting this. Can we please return to AliasSeq? -- Andrei
>
> https://github.com/D-Programming-Language/phobos/pull/3498
Please don't cry, there are so many other bad names in the eco-system already. Nobody will notice… unless they have a CS degree.
|
July 17, 2015 Re: Wait, what? What is AliasSeq? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On Thursday, 16 July 2015 at 15:50:15 UTC, Andrei Alexandrescu wrote:
> On 7/15/15 8:49 PM, Mike wrote:
>> 1. "AliasSeq" is no good as evident from the first post that started
>> this thread
>
> I am egging my face for starting this. Can we please return to AliasSeq? -- Andrei
I'm good with that. As said, not my #1 choice, but good enough.
|
Copyright © 1999-2021 by the D Language Foundation