Re: Article: the feature that makes D my favorite programming language

2020-07-27 Thread Aliak via Digitalmars-d-announce
On Saturday, 25 July 2020 at 16:22:52 UTC, H. S. Teoh wrote: On Sat, Jul 25, 2020 at 01:28:34PM +, Adam D. Ruppe via Digitalmars-d-announce wrote: On Saturday, 25 July 2020 at 11:12:16 UTC, aberba wrote: > Oop! Chaining the writeln too could have increased the wow > factor. I didn't see

Re: Article: the feature that makes D my favorite programming language

2020-07-26 Thread guai via Digitalmars-d-announce
I find something like writable.writeTo(stdout) nicer

Re: Article: the feature that makes D my favorite programming language

2020-07-26 Thread aberba via Digitalmars-d-announce
On Sunday, 26 July 2020 at 01:14:53 UTC, Paul Backus wrote: On Saturday, 25 July 2020 at 18:24:22 UTC, Jesse Phillips wrote: On Saturday, 25 July 2020 at 14:47:01 UTC, aberba wrote: [...] It bugs me too, though I have done it. I think the right answer of why it is odd is because writeln is

Re: Article: the feature that makes D my favorite programming language

2020-07-25 Thread Paul Backus via Digitalmars-d-announce
On Saturday, 25 July 2020 at 18:24:22 UTC, Jesse Phillips wrote: On Saturday, 25 July 2020 at 14:47:01 UTC, aberba wrote: On Saturday, 25 July 2020 at 13:28:34 UTC, Adam D. Ruppe wrote: On Saturday, 25 July 2020 at 11:12:16 UTC, aberba wrote: Oop! Chaining the writeln too could have increased

Re: Article: the feature that makes D my favorite programming language

2020-07-25 Thread Ali Çehreli via Digitalmars-d-announce
On 7/25/20 7:47 AM, aberba wrote: > On Saturday, 25 July 2020 at 13:28:34 UTC, Adam D. Ruppe wrote: >> oh I hate it when people do that though, it just looks off to me at >> that point. > > Ha ha. If you're writing idiomatic D code, why not not all in on it? I agree with Adam and others on this.

Re: Article: the feature that makes D my favorite programming language

2020-07-25 Thread Jesse Phillips via Digitalmars-d-announce
On Saturday, 25 July 2020 at 14:47:01 UTC, aberba wrote: On Saturday, 25 July 2020 at 13:28:34 UTC, Adam D. Ruppe wrote: On Saturday, 25 July 2020 at 11:12:16 UTC, aberba wrote: Oop! Chaining the writeln too could have increased the wow factor. I didn't see that. oh I hate it when people do

Re: Article: the feature that makes D my favorite programming language

2020-07-25 Thread H. S. Teoh via Digitalmars-d-announce
On Sat, Jul 25, 2020 at 01:28:34PM +, Adam D. Ruppe via Digitalmars-d-announce wrote: > On Saturday, 25 July 2020 at 11:12:16 UTC, aberba wrote: > > Oop! Chaining the writeln too could have increased the wow factor. I > > didn't see that. > > oh I hate it when people do that though, it just

Re: Article: the feature that makes D my favorite programming language

2020-07-25 Thread aberba via Digitalmars-d-announce
On Saturday, 25 July 2020 at 13:28:34 UTC, Adam D. Ruppe wrote: On Saturday, 25 July 2020 at 11:12:16 UTC, aberba wrote: Oop! Chaining the writeln too could have increased the wow factor. I didn't see that. oh I hate it when people do that though, it just looks off to me at that point. Ha

Re: Article: the feature that makes D my favorite programming language

2020-07-25 Thread Adam D. Ruppe via Digitalmars-d-announce
On Saturday, 25 July 2020 at 11:12:16 UTC, aberba wrote: Oop! Chaining the writeln too could have increased the wow factor. I didn't see that. oh I hate it when people do that though, it just looks off to me at that point.

Re: Article: the feature that makes D my favorite programming language

2020-07-25 Thread aberba via Digitalmars-d-announce
On Saturday, 25 July 2020 at 10:22:53 UTC, Andre Pany wrote: On Friday, 24 July 2020 at 20:34:17 UTC, aberba wrote: Wrote something on the feature that makes D my favorite programming language https://opensource.com/article/20/7/d-programming Great article. I assume you didn't chained

Re: Article: the feature that makes D my favorite programming language

2020-07-25 Thread Andre Pany via Digitalmars-d-announce
On Friday, 24 July 2020 at 20:34:17 UTC, aberba wrote: Wrote something on the feature that makes D my favorite programming language https://opensource.com/article/20/7/d-programming Great article. I assume you didn't chained writeln by purpose, same for import std? ``` import std; int[]

Re: Article: the feature that makes D my favorite programming language

2020-07-24 Thread aberba via Digitalmars-d-announce
On Friday, 24 July 2020 at 21:18:37 UTC, Steven Schveighoffer wrote: On 7/24/20 4:34 PM, aberba wrote: Wrote something on the feature that makes D my favorite programming language https://opensource.com/article/20/7/d-programming Nice! You could make this more dramatic. I'm sure you just

Re: Article: the feature that makes D my favorite programming language

2020-07-24 Thread aberba via Digitalmars-d-announce
On Friday, 24 July 2020 at 21:19:28 UTC, H. S. Teoh wrote: On Fri, Jul 24, 2020 at 08:34:17PM +, aberba via Digitalmars-d-announce wrote: Wrote something on the feature that makes D my favorite programming language https://opensource.com/article/20/7/d-programming Nitpick: evenNumbers

Re: Article: the feature that makes D my favorite programming language

2020-07-24 Thread Steven Schveighoffer via Digitalmars-d-announce
On 7/24/20 4:34 PM, aberba wrote: Wrote something on the feature that makes D my favorite programming language https://opensource.com/article/20/7/d-programming Nice! You could make this more dramatic. I'm sure you just "did it automatically", but you used UFCS in your function

Re: Article: the feature that makes D my favorite programming language

2020-07-24 Thread H. S. Teoh via Digitalmars-d-announce
On Fri, Jul 24, 2020 at 08:34:17PM +, aberba via Digitalmars-d-announce wrote: > Wrote something on the feature that makes D my favorite programming > language > > https://opensource.com/article/20/7/d-programming Nitpick: evenNumbers doesn't need to return int[]. In fact, dropping the

Re: Article: the feature that makes D my favorite programming language

2020-07-24 Thread Ernesto Castellotti via Digitalmars-d-announce
On Friday, 24 July 2020 at 20:34:17 UTC, aberba wrote: Wrote something on the feature that makes D my favorite programming language https://opensource.com/article/20/7/d-programming An interesting article, excellent job

Article: the feature that makes D my favorite programming language

2020-07-24 Thread aberba via Digitalmars-d-announce
Wrote something on the feature that makes D my favorite programming language https://opensource.com/article/20/7/d-programming