Re: Deprecation of implicit string concatenation

2017-04-04 Thread Jacob Carlborg via Digitalmars-d
On 2017-04-02 16:20, Johan Engelen wrote: I've been thinking for some time now about making a good code formatter, and the removal of the automatic concat (and the necessity of parens) makes automatic reformatting of code _a lot_ harder. Assuming you're thinking of splitting up lines that are

Re: Deprecation of implicit string concatenation

2017-04-02 Thread Johan Engelen via Digitalmars-d
On Sunday, 2 April 2017 at 11:44:16 UTC, David Nadlinger wrote: On Sunday, 2 April 2017 at 10:55:22 UTC, Johan Engelen wrote: a ~ "abc" "def"; If the order is important, make it `a ~ ("abc" ~ "def")` instead. I'd argue that with concatenation usually being left-associative, clearly statin

Re: Deprecation of implicit string concatenation

2017-04-02 Thread Jacob Carlborg via Digitalmars-d
On 2017-04-02 13:14, Jonathan M Davis via Digitalmars-d wrote: And if the problem is the deprecation message, well, you can only put so much in a deprecation message without making it too long. It could contain a link to some documentation explaining it in more detail. -- /Jacob Carlborg

Re: Deprecation of implicit string concatenation

2017-04-02 Thread David Nadlinger via Digitalmars-d
On Sunday, 2 April 2017 at 10:55:22 UTC, Johan Engelen wrote: a ~ "abc" "def"; If the order is important, make it `a ~ ("abc" ~ "def")` instead. I'd argue that with concatenation usually being left-associative, clearly stating the intention to evaluate the side first would be a good idea

Re: Deprecation of implicit string concatenation

2017-04-02 Thread Jonathan M Davis via Digitalmars-d
On Sunday, April 02, 2017 10:55:22 Johan Engelen via Digitalmars-d wrote: > On Sunday, 2 April 2017 at 10:05:57 UTC, Jonathan M Davis wrote: > > On Sunday, April 02, 2017 11:47:52 Jacob Carlborg via > > > > Digitalmars-d wrote: > >> On 2017-04-02 11:22, Johan Engelen wrote: > >> > Since 2.072, impl

Re: Deprecation of implicit string concatenation

2017-04-02 Thread Johan Engelen via Digitalmars-d
On Sunday, 2 April 2017 at 10:02:09 UTC, Tobias Pankrath wrote: On Sunday, 2 April 2017 at 09:22:38 UTC, Johan Engelen wrote: Did we lose the ability to break strings across lines? [1] https://dlang.org/changelog/2.072.0.html#deprecated_implicit_cat Delimited strings are the way to go. So

Re: Deprecation of implicit string concatenation

2017-04-02 Thread Johan Engelen via Digitalmars-d
On Sunday, 2 April 2017 at 10:05:57 UTC, Jonathan M Davis wrote: On Sunday, April 02, 2017 11:47:52 Jacob Carlborg via Digitalmars-d wrote: On 2017-04-02 11:22, Johan Engelen wrote: > Since 2.072, implicit string concatenation is deprecated > [1]. Can someone give me a link to the discussion ab

Re: Deprecation of implicit string concatenation

2017-04-02 Thread Jonathan M Davis via Digitalmars-d
On Sunday, April 02, 2017 11:47:52 Jacob Carlborg via Digitalmars-d wrote: > On 2017-04-02 11:22, Johan Engelen wrote: > > Since 2.072, implicit string concatenation is deprecated [1]. > > Can someone give me a link to the discussion about this? > > > > I am wondering about the language spec change

Re: Deprecation of implicit string concatenation

2017-04-02 Thread Tobias Pankrath via Digitalmars-d
On Sunday, 2 April 2017 at 09:22:38 UTC, Johan Engelen wrote: Did we lose the ability to break strings across lines? [1] https://dlang.org/changelog/2.072.0.html#deprecated_implicit_cat Delimited strings are the way to go. http://dlang.org/spec/lex.html#StringLiteral

Re: Deprecation of implicit string concatenation

2017-04-02 Thread Jacob Carlborg via Digitalmars-d
On 2017-04-02 11:22, Johan Engelen wrote: Since 2.072, implicit string concatenation is deprecated [1]. Can someone give me a link to the discussion about this? I am wondering about the language spec changes involved. ``` "abc" "def" ``` means something different than ``` "abc" ~ "def"

Deprecation of implicit string concatenation

2017-04-02 Thread Johan Engelen via Digitalmars-d
Since 2.072, implicit string concatenation is deprecated [1]. Can someone give me a link to the discussion about this? I am wondering about the language spec changes involved. ``` "abc" "def" ``` means something different than ``` "abc" ~ "def" ``` right? (for example because opBinary!(“