Re: Shameless autopromotion : type safe tagged union in D

2013-05-16 Thread Nick Sabalausky
On Fri, 10 May 2013 14:32:48 +0200 deadalnix deadal...@gmail.com wrote: http://www.deadalnix.me/2013/05/10/type-safe-tagged-union-in-d-programming-language/ A trick that I used to use more and more, so I ended up creating a generic solution and wrote an article about it. Nice article, but

Re: Shameless autopromotion : type safe tagged union in D

2013-05-16 Thread deadalnix
On Thursday, 16 May 2013 at 18:30:22 UTC, Nick Sabalausky wrote: On Fri, 10 May 2013 14:32:48 +0200 deadalnix deadal...@gmail.com wrote: http://www.deadalnix.me/2013/05/10/type-safe-tagged-union-in-d-programming-language/ A trick that I used to use more and more, so I ended up creating a

Re: Shameless autopromotion : type safe tagged union in D

2013-05-12 Thread SomeDude
On Friday, 10 May 2013 at 19:23:45 UTC, Jesse Phillips wrote: On Friday, 10 May 2013 at 17:56:14 UTC, Andrei Alexandrescu wrote: A general note about posting to reddit: it often happens that posts from infrequent posters go to spam by means of some automatic rule. When that happens you need to

Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread deadalnix
http://www.deadalnix.me/2013/05/10/type-safe-tagged-union-in-d-programming-language/ A trick that I used to use more and more, so I ended up creating a generic solution and wrote an article about it.

Re: Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread John Colvin
On Friday, 10 May 2013 at 12:32:50 UTC, deadalnix wrote: http://www.deadalnix.me/2013/05/10/type-safe-tagged-union-in-d-programming-language/ A trick that I used to use more and more, so I ended up creating a generic solution and wrote an article about it. Fancy some proof-reading again?

Re: Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread John Colvin
On Friday, 10 May 2013 at 12:47:17 UTC, John Colvin wrote: On Friday, 10 May 2013 at 12:32:50 UTC, deadalnix wrote: http://www.deadalnix.me/2013/05/10/type-safe-tagged-union-in-d-programming-language/ A trick that I used to use more and more, so I ended up creating a generic solution and

Re: Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread Dmitry Olshansky
10-May-2013 16:32, deadalnix пишет: http://www.deadalnix.me/2013/05/10/type-safe-tagged-union-in-d-programming-language/ A trick that I used to use more and more, so I ended up creating a generic solution and wrote an article about it. Neat but somewhat limited. E.g. this is exactly the

Re: Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread deadalnix
On Friday, 10 May 2013 at 13:04:58 UTC, John Colvin wrote: On Friday, 10 May 2013 at 12:47:17 UTC, John Colvin wrote: On Friday, 10 May 2013 at 12:32:50 UTC, deadalnix wrote: http://www.deadalnix.me/2013/05/10/type-safe-tagged-union-in-d-programming-language/ A trick that I used to use more

Re: Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread deadalnix
On Friday, 10 May 2013 at 13:11:37 UTC, Dmitry Olshansky wrote: E.g. this is exactly the same switch madness we sought to avoid: The article don't plan to avoid this, but to make the tagged union safe. I agree this is a plus, but didn't really took time to make that work. void

Re: Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread deadalnix
On Friday, 10 May 2013 at 13:51:11 UTC, deadalnix wrote: Is this on Reddit yet? No, feel free to put it if you think it is appropriate ! http://www.reddit.com/r/programming/comments/1e2h99/type_safe_tagged_union_in_d/ Someone else did.

Re: Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread Andrei Alexandrescu
On 5/10/13 8:32 AM, deadalnix wrote: http://www.deadalnix.me/2013/05/10/type-safe-tagged-union-in-d-programming-language/ A trick that I used to use more and more, so I ended up creating a generic solution and wrote an article about it. Article is good, could use a few copyediting fixes

Re: Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread John Colvin
On Friday, 10 May 2013 at 13:51:11 UTC, deadalnix wrote: Awesome, I'll update the article. Andrei pointed out that the title needed fixing: I suggest: Type-safe tagged unions in the D programming language. Type-safe tagged unions in D.

Re: Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread John Colvin
On Friday, 10 May 2013 at 14:37:49 UTC, Andrei Alexandrescu wrote: On 5/10/13 8:32 AM, deadalnix wrote: http://www.deadalnix.me/2013/05/10/type-safe-tagged-union-in-d-programming-language/ A trick that I used to use more and more, so I ended up creating a generic solution and wrote an

Re: Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread Artur Skawina
On 05/10/13 14:32, deadalnix wrote: http://www.deadalnix.me/2013/05/10/type-safe-tagged-union-in-d-programming-language/ A trick that I used to use more and more, so I ended up creating a generic solution and wrote an article about it. Nothing 'shameless' about it. But Real Programmers

Re: Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread deadalnix
On Friday, 10 May 2013 at 14:53:23 UTC, John Colvin wrote: On Friday, 10 May 2013 at 13:51:11 UTC, deadalnix wrote: Awesome, I'll update the article. Andrei pointed out that the title needed fixing: I suggest: Type-safe tagged unions in the D programming language. Type-safe tagged unions

Re: Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread Piotr Szturmaj
W dniu 10.05.2013 14:32, deadalnix pisze: http://www.deadalnix.me/2013/05/10/type-safe-tagged-union-in-d-programming-language/ A trick that I used to use more and more, so I ended up creating a generic solution and wrote an article about it. Here's my try on this:

Re: Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread Andrei Alexandrescu
On 5/10/13 1:49 PM, Andrei Alexandrescu wrote: On 5/10/13 10:15 AM, deadalnix wrote: On Friday, 10 May 2013 at 13:51:11 UTC, deadalnix wrote: Is this on Reddit yet? No, feel free to put it if you think it is appropriate !

Re: Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread Walter Bright
On 5/10/2013 10:56 AM, Andrei Alexandrescu wrote: A general note about posting to reddit: it often happens that posts from infrequent posters go to spam by means of some automatic rule. When that happens you need to message the moderators and politely ask them to manually instate the post

Re: Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread Jesse Phillips
On Friday, 10 May 2013 at 17:56:14 UTC, Andrei Alexandrescu wrote: A general note about posting to reddit: it often happens that posts from infrequent posters go to spam by means of some automatic rule. When that happens you need to message the moderators and politely ask them to manually

Re: Shameless autopromotion : type safe tagged union in D

2013-05-10 Thread Timon Gehr
On 05/10/2013 02:32 PM, deadalnix wrote: http://www.deadalnix.me/2013/05/10/type-safe-tagged-union-in-d-programming-language/ A trick that I used to use more and more, so I ended up creating a generic solution and wrote an article about it. I'd have implemented your TaggedUnion struct as