Re: Blogpost about the T.init problem

2018-07-12 Thread Cym13 via Digitalmars-d-announce
On Wednesday, 11 July 2018 at 07:30:59 UTC, FeepingCreature wrote: That would work, it's just a really horrible hack and I hate it. Bastiaan's solution to simply change the default value slipped my mind but is really cleaner and in the same line of thought. We're constructing a fictitious do

Re: Blogpost about the T.init problem

2018-07-12 Thread Timothee Cour via Digitalmars-d-announce
the following seems like a easy enough workaround: just add ` if(this is typeof(this).init) return;` at 1st line of your invariant: ```d import std.typecons; import std.range; struct MyDomainData { string username; this(string username) @safe in(!username.empty) do { this.us

Re: Blogpost about the T.init problem

2018-07-12 Thread Luís Marques via Digitalmars-d-announce
On Wednesday, 11 July 2018 at 03:00:48 UTC, Ali wrote: Somehow, this is the type of problem, i thought point 1 in the vision document is aimed to solve https://wiki.dlang.org/Vision/2018H1 "1. Lock down the language definition: D is a powerful language but its definition is not precise enough.

Re: I have a plan.. I really DO

2018-07-12 Thread bachmeier via Digitalmars-d-announce
On Thursday, 12 July 2018 at 11:36:15 UTC, RhyS wrote: Its the same with the donations. I stated before that D as a organisation with its financing feels very mysterious. You do not see where the money goes I've raised this issue elsewhere. I think there would be more incentive to donate if

Seoul D Meetup - Aug 9 - BlockchainOS & Learn Teach Code Seoul

2018-07-12 Thread Mike Parker via Digitalmars-d-announce
I'm very happy to announce the next Seoul D meetup on August 9 at 7:00 pm. We're partnering with local company BlockchainOS and the Meetup group 'Learn Teach Code Seoul' for an interactive 'Introduction to D' presentation/tutorial followed by an hour of coding challenges. BlockchainOS is gracio

Re: Update regarding the Nullable issue

2018-07-12 Thread FeepingCreature via Digitalmars-d-announce
On Thursday, 12 July 2018 at 08:54:17 UTC, Simen Kjærås wrote: Whether that means it's undefined behavior or the compiler should statically disallow it is up for debate, I guess. -- Simen Honestly, half the reason I'm using it so enthusiastically is that I want to emphasize that this is an

Re: I have a plan.. I really DO

2018-07-12 Thread wjoe via Digitalmars-d-announce
On Tuesday, 10 July 2018 at 17:25:11 UTC, Yuxuan Shui wrote: (Although I don't quite agree with you. Some people DO resist change, that's why some decades old languages are still popular. But look at the popularity of new languages like Go, and Rust, and the ever-change landscape of front-end

Re: asdf json library moved to libmir

2018-07-12 Thread Rene Zwanenburg via Digitalmars-d-announce
On Wednesday, 11 July 2018 at 21:42:45 UTC, yannick wrote: Hi All, Since i'll be leaving Tamedia (who sponsored development of Asdf) and it's not under active use anymore here we decided to donate it to libmir. ... cheers, y Thanks for keeping it alive. I've used asdf at work last week to

Re: I have a plan.. I really DO

2018-07-12 Thread RhyS via Digitalmars-d-announce
On Wednesday, 11 July 2018 at 21:19:18 UTC, Ecstatic Coder wrote: I agree. And I must admit that from that point of view I'm indeed part of the problem... Its a problem every open source project faces. No matter if its D or Crystal or ... The main issue is that many people in those open sour

Re: I have a plan.. I really DO

2018-07-12 Thread RhyS via Digitalmars-d-announce
On Tuesday, 10 July 2018 at 10:48:30 UTC, bauss wrote: On Friday, 6 July 2018 at 23:27:57 UTC, RhyS wrote: Total 1336 packages found. 3359 total shards D has had a major release. Crystal has had a minor release. Total 1339 packages 3382 total shards This is a really weak point, because

Re: Update regarding the Nullable issue

2018-07-12 Thread Simen Kjærås via Digitalmars-d-announce
On Wednesday, 11 July 2018 at 10:43:40 UTC, FeepingCreature wrote: Destructors are not called for fields embedded in unions. On the one hand this is a horrible, horrible hack. On the other, whee! Not only a horrible hack, but a bug, and something you really can't rely on working in the futur

Re: asdf json library moved to libmir

2018-07-12 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Wednesday, 11 July 2018 at 21:42:45 UTC, yannick wrote: Hi All, Since i'll be leaving Tamedia (who sponsored development of Asdf) and it's not under active use anymore here we decided to donate it to libmir. Asdf has a few nifty features that make it perfect for reading large amounts of