Re: std.variant Is Everything Cool About D

2018-04-05 Thread Meta via Digitalmars-d-announce
On Wednesday, 4 April 2018 at 11:40:58 UTC, Steven Schveighoffer wrote: On 4/3/18 11:29 PM, Meta wrote: Also, with Nullable your data is guaranteed to not be boxed, whereas it's a possibility with Variant/Algebraic if the types you're working with are large enough. Not with Algebraic.

Re: std.variant Is Everything Cool About D

2018-04-04 Thread Steven Schveighoffer via Digitalmars-d-announce
On 4/3/18 11:29 PM, Meta wrote: Also, with Nullable your data is guaranteed to not be boxed, whereas it's a possibility with Variant/Algebraic if the types you're working with are large enough. Not with Algebraic. -Steve

Re: std.variant Is Everything Cool About D

2018-04-03 Thread Meta via Digitalmars-d-announce
On Wednesday, 4 April 2018 at 03:09:22 UTC, helxi wrote: On Thursday, 29 March 2018 at 14:10:39 UTC, Mike Parker wrote: Jared Hanson (a.k.a Meta and MetaLang around these parts) was inspired by an article titled "std::visit is everything wrong with modern C++" to contrast it with D's

Re: std.variant Is Everything Cool About D

2018-04-03 Thread helxi via Digitalmars-d-announce
On Thursday, 29 March 2018 at 14:10:39 UTC, Mike Parker wrote: Jared Hanson (a.k.a Meta and MetaLang around these parts) was inspired by an article titled "std::visit is everything wrong with modern C++" to contrast it with D's std.variant.visit. The result is this well-written post for the D

Re: std.variant Is Everything Cool About D

2018-04-01 Thread Meta via Digitalmars-d-announce
On Saturday, 31 March 2018 at 17:36:30 UTC, Pjotr Prins wrote: Great blog. Thanks. Thank you, glad you liked it.

Re: std.variant Is Everything Cool About D

2018-03-31 Thread Pjotr Prins via Digitalmars-d-announce
Great blog. Thanks.

Re: std.variant Is Everything Cool About D

2018-03-30 Thread Walter Bright via Digitalmars-d-announce
On 3/29/2018 12:32 PM, Walter Bright wrote: On 3/29/2018 10:30 AM, 12345swordy wrote: There are some quite criticisms being made in the comments section. The main criticism is a misunderstanding about std.variant's allocation strategy. I have been trying to correct that. Part of the

Re: std.variant Is Everything Cool About D

2018-03-30 Thread Meta via Digitalmars-d-announce
On Friday, 30 March 2018 at 13:44:50 UTC, Meta wrote: I've submitted it to Hacker News as well (looks like someone posted it yesterday, but it only got 1 vote and there was no discussion, so I figured that was grounds enough for resubmission). If you've got an account, please give me your

Re: std.variant Is Everything Cool About D

2018-03-30 Thread Meta via Digitalmars-d-announce
On Thursday, 29 March 2018 at 14:10:39 UTC, Mike Parker wrote: Jared Hanson (a.k.a Meta and MetaLang around these parts) was inspired by an article titled "std::visit is everything wrong with modern C++" to contrast it with D's std.variant.visit. The result is this well-written post for the D

Re: std.variant Is Everything Cool About D

2018-03-30 Thread rjframe via Digitalmars-d-announce
On Fri, 30 Mar 2018 00:55:20 +, dangbinghoo wrote: > I think we need a book about D's std Phobos, like `mastering STL` > or something like C++ world do, but of course, I didn't mean selling to > C++ world, I mean newbie may need knowledge about the Phobos and the > design and using the power

Re: std.variant Is Everything Cool About D

2018-03-30 Thread Patrick Schluter via Digitalmars-d-announce
On Friday, 30 March 2018 at 03:54:21 UTC, Mike Parker wrote: On Friday, 30 March 2018 at 02:46:13 UTC, jmh530 wrote: On Friday, 30 March 2018 at 00:37:27 UTC, Meta wrote: Unfortunately, this turned out to be the worst possible day for me to try to actively monitor the thread and respond to

Re: std.variant Is Everything Cool About D

2018-03-29 Thread Mike Parker via Digitalmars-d-announce
On Friday, 30 March 2018 at 02:46:13 UTC, jmh530 wrote: On Friday, 30 March 2018 at 00:37:27 UTC, Meta wrote: Unfortunately, this turned out to be the worst possible day for me to try to actively monitor the thread and respond to questions. I'm surprised that people latched onto my little

Re: std.variant Is Everything Cool About D

2018-03-29 Thread jmh530 via Digitalmars-d-announce
On Friday, 30 March 2018 at 00:37:27 UTC, Meta wrote: Unfortunately, this turned out to be the worst possible day for me to try to actively monitor the thread and respond to questions. I'm surprised that people latched onto my little quip about C++ using the name variant for a tagged union.

Re: std.variant Is Everything Cool About D

2018-03-29 Thread dangbinghoo via Digitalmars-d-announce
On Thursday, 29 March 2018 at 14:10:39 UTC, Mike Parker wrote: Jared Hanson (a.k.a Meta and MetaLang around these parts) was inspired by an article titled "std::visit is everything wrong with modern C++" to contrast it with D's std.variant.visit. The result is this well-written post for the D

Re: std.variant Is Everything Cool About D

2018-03-29 Thread Meta via Digitalmars-d-announce
On Thursday, 29 March 2018 at 14:10:39 UTC, Mike Parker wrote: Jared Hanson (a.k.a Meta and MetaLang around these parts) was inspired by an article titled "std::visit is everything wrong with modern C++" to contrast it with D's std.variant.visit. The result is this well-written post for the D

Re: std.variant Is Everything Cool About D

2018-03-29 Thread bachmeier via Digitalmars-d-announce
On Thursday, 29 March 2018 at 17:30:04 UTC, 12345swordy wrote: There are some quite criticisms being made in the comments section. Hopefully there will be a time in the future where D stops selling itself as a dialect of C++. Whether the criticisms are right or wrong, they show the

Re: std.variant Is Everything Cool About D

2018-03-29 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-announce
On 03/29/2018 01:30 PM, 12345swordy wrote: There are some quite criticisms being made in the comments section. Some of them I actually agree with. Much as I love D, its Variant/Arithmetic *is* a terribly inferior hack compared to various languages that have built-in sum types. (Like

Re: std.variant Is Everything Cool About D

2018-03-29 Thread Walter Bright via Digitalmars-d-announce
On 3/29/2018 10:30 AM, 12345swordy wrote: There are some quite criticisms being made in the comments section. The main criticism is a misunderstanding about std.variant's allocation strategy. I have been trying to correct that.

Re: std.variant Is Everything Cool About D

2018-03-29 Thread 12345swordy via Digitalmars-d-announce
On Thursday, 29 March 2018 at 14:10:39 UTC, Mike Parker wrote: Jared Hanson (a.k.a Meta and MetaLang around these parts) was inspired by an article titled "std::visit is everything wrong with modern C++" to contrast it with D's std.variant.visit. The result is this well-written post for the D

Re: std.variant Is Everything Cool About D

2018-03-29 Thread Sam Potter via Digitalmars-d-announce
Awesome. I just scanned the "learn" section of the dlang.org, and didn't immediately see a section titled "pattern matching" which includes the nice D code from this blog post (sorry if it's in there---but it isn't jumping out at me). Maybe worth including or emphasizing.