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 Blog.
The blog:
https://dlang.org/blog/2018/03/29/std-variant-i
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.
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 B
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.
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 Nemerle)
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 difficult
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 B
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 B
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.
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
qu
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
q
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 o
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 B
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
mean
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 problem
Great blog. Thanks.
On Saturday, 31 March 2018 at 17:36:30 UTC, Pjotr Prins wrote:
Great blog. Thanks.
Thank you, glad you liked it.
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 B
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 std.varian
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
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.
-Steve
21 matches
Mail list logo