Re: why is "hello".writeln considered bad?

2020-11-20 Thread norm via Digitalmars-d-learn
On Friday, 20 November 2020 at 18:46:40 UTC, Martin wrote: On Friday, 20 November 2020 at 10:03:18 UTC, Daniel Kozak wrote: I remember days when I liked UFCS too . Unfortunately it is not so awesome when you use it with IDE. And I would like to add: if you use in a bigger team. It's

Re: why is "hello".writeln considered bad?

2020-11-20 Thread Martin via Digitalmars-d-learn
On Friday, 20 November 2020 at 10:03:18 UTC, Daniel Kozak wrote: I remember days when I liked UFCS too . Unfortunately it is not so awesome when you use it with IDE. And I would like to add: if you use in a bigger team. It's annoying when every dev have a own taste.. And together with

Re: why is "hello".writeln considered bad?

2020-11-20 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Nov 20, 2020 at 11:03:18AM +0100, Daniel Kozak via Digitalmars-d-learn wrote: [...] >I remember days when I liked UFCS too . Unfortunately  it is not so >awesome when you use it with IDE. So I am now avoiding UFCS as much >as possible and it is a much better experience for me.

Re: why is "hello".writeln considered bad?

2020-11-20 Thread Mike Parker via Digitalmars-d-learn
On Friday, 20 November 2020 at 10:03:18 UTC, Daniel Kozak wrote: I remember days when I liked UFCS too . Unfortunately it is not so awesome when you use it with IDE. So I am now avoiding UFCS as much as possible and it is a much better experience for me. Doesn't bother me.

Re: why is "hello".writeln considered bad?

2020-11-20 Thread Daniel Kozak via Digitalmars-d-learn
On Fri, Nov 20, 2020 at 8:55 AM Mike Parker via Digitalmars-d-learn < digitalmars-d-learn@puremagic.com> wrote: > ... > Eh, I wouldn't quite put it that way. If we're thinking of the > same thread, one person said he thought it was a bad idea. That > doesn't make it bad practice. It's just his

Re: why is "hello".writeln considered bad?

2020-11-20 Thread rikki cattermole via Digitalmars-d-learn
I was the person who wrote that example. It was just an example to show how it can be used. I would not write a function call like that when using a literal. As Mike said, its all up to personal preference.

Re: why is "hello".writeln considered bad?

2020-11-19 Thread Mike Parker via Digitalmars-d-learn
On Friday, 20 November 2020 at 07:39:10 UTC, norm wrote: I was reading some posts and this was presented as a snippet of code and was immediately flagged as bad practice. Eh, I wouldn't quite put it that way. If we're thinking of the same thread, one person said he thought it was a bad

why is "hello".writeln considered bad?

2020-11-19 Thread norm via Digitalmars-d-learn
I was reading some posts and this was presented as a snippet of code and was immediately flagged as bad practice. I get some people don't like it but occasionally I prefer this syntax. It feels more declarative and fluent in style. Is there a good technical reason why it is bad practice, e.g.