Re: Interpolated strings

2017-04-15 Thread Russel Winder via Digitalmars-d
On Sat, 2017-04-15 at 21:48 +, cym13 via Digitalmars-d wrote: > […] > structure is alike. This makes it *so* much easier. I want to be  > able to find bugs easily. I want D to be like python on that  > part. Not perl. Not ruby. Python now has string interpolation, f-strings. -- Russel. =

Re: Interpolated strings

2017-04-15 Thread Dmitry Olshansky via Digitalmars-d
On 4/15/17 10:04 PM, Jonas Drewsen wrote: Hi all I've been wanting to have support for interpolated strings in D for some time now that will allow you to write e.g.: auto a = 7; writeln( $"{a} times 3 is {a*3}" ); Code speaks louder that words so I've made a PR that adds this support to ddmd

Re: Thoughts from newcommer

2017-04-15 Thread Joakim via Digitalmars-d
On Saturday, 15 April 2017 at 18:00:50 UTC, Isaac Gouy wrote: On Thursday, 13 April 2017 at 03:29:26 UTC, Joakim wrote: Cooperative with what? He chose not to include D anymore, which at one point dominated the shootout, and says we should just start our own site: https://forum.dlang.org/po

Re: Interpolated strings

2017-04-15 Thread Stanislav Blinov via Digitalmars-d
On Saturday, 15 April 2017 at 23:58:18 UTC, Adam D. Ruppe wrote: On Saturday, 15 April 2017 at 23:11:42 UTC, Stanislav Blinov wrote: How about... it removes an import or two? It doesn't actually remove the dependency, it is just syntax sugar over it (there is precedent for this in the languag

Re: Interpolated strings

2017-04-15 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 15 April 2017 at 23:11:42 UTC, Stanislav Blinov wrote: How about... it removes an import or two? It doesn't actually remove the dependency, it is just syntax sugar over it (there is precedent for this in the language, the pow operator calls a Phobos function, but it means you don

Re: Interpolated strings

2017-04-15 Thread cym13 via Digitalmars-d
On Saturday, 15 April 2017 at 23:11:42 UTC, Stanislav Blinov wrote: On Saturday, 15 April 2017 at 21:38:24 UTC, cym13 wrote: On Saturday, 15 April 2017 at 20:20:49 UTC, Stanislav Blinov wrote: On Saturday, 15 April 2017 at 20:12:41 UTC, cym13 wrote: On Saturday, 15 April 2017 at 20:04:13 UTC, J

Re: Interpolated strings

2017-04-15 Thread Stanislav Blinov via Digitalmars-d
On Saturday, 15 April 2017 at 21:38:24 UTC, cym13 wrote: On Saturday, 15 April 2017 at 20:20:49 UTC, Stanislav Blinov wrote: On Saturday, 15 April 2017 at 20:12:41 UTC, cym13 wrote: On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote: This has been proposed before, and I still don

Re: Interpolated strings

2017-04-15 Thread cym13 via Digitalmars-d
On Saturday, 15 April 2017 at 20:45:23 UTC, Jonas Drewsen wrote: On Saturday, 15 April 2017 at 20:20:49 UTC, Stanislav Blinov wrote: On Saturday, 15 April 2017 at 20:12:41 UTC, cym13 wrote: On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote: This has been proposed before, and I s

Re: Interpolated strings

2017-04-15 Thread cym13 via Digitalmars-d
On Saturday, 15 April 2017 at 20:20:49 UTC, Stanislav Blinov wrote: On Saturday, 15 April 2017 at 20:12:41 UTC, cym13 wrote: On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote: This has been proposed before, and I still don't see the added value compared to: auto a=7; w

Re: Interpolated strings

2017-04-15 Thread Jonas Drewsen via Digitalmars-d
On Saturday, 15 April 2017 at 21:03:27 UTC, Xinok wrote: On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote: Hi all I shared my thoughts on such a feature just a couple weeks ago: https://forum.dlang.org/post/oedeijdewmhazaqaz...@forum.dlang.org Most of you points applies to

Re: Interpolated strings

2017-04-15 Thread Jonas Drewsen via Digitalmars-d
On Saturday, 15 April 2017 at 20:57:33 UTC, Jack Stouffer wrote: On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote: ... First, there's a process for language additions, please see https://github.com/dlang/DIPs/blob/master/README.md Secondly, I can tell you that any proposal th

Re: Interpolated strings

2017-04-15 Thread Xinok via Digitalmars-d
On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote: Hi all I shared my thoughts on such a feature just a couple weeks ago: https://forum.dlang.org/post/oedeijdewmhazaqaz...@forum.dlang.org

Re: Interpolated strings

2017-04-15 Thread Jack Stouffer via Digitalmars-d
On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote: ... First, there's a process for language additions, please see https://github.com/dlang/DIPs/blob/master/README.md Secondly, I can tell you that any proposal that can be solved via the standard library has a very low chance o

Re: Interpolated strings

2017-04-15 Thread Jonas Drewsen via Digitalmars-d
On Saturday, 15 April 2017 at 20:35:56 UTC, crimaniak wrote: On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote: The compiler will basically lower the $"..." string to a mixin that concatenates the expression parts of the (inside the {}) and the plain text parts. It's easy implemen

Re: Interpolated strings

2017-04-15 Thread Jonas Drewsen via Digitalmars-d
On Saturday, 15 April 2017 at 20:20:49 UTC, Stanislav Blinov wrote: On Saturday, 15 April 2017 at 20:12:41 UTC, cym13 wrote: On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote: This has been proposed before, and I still don't see the added value compared to: auto a=7; w

Re: Interpolated strings

2017-04-15 Thread crimaniak via Digitalmars-d
On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote: The compiler will basically lower the $"..." string to a mixin that concatenates the expression parts of the (inside the {}) and the plain text parts. It's easy implementable as a library (see https://github.com/Abscissa/scriptlik

Re: Interpolated strings

2017-04-15 Thread Stanislav Blinov via Digitalmars-d
On Saturday, 15 April 2017 at 20:12:41 UTC, cym13 wrote: On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote: This has been proposed before, and I still don't see the added value compared to: auto a=7; writeln(a, " times 3 is ", a*3); besides adding compiler complexity,

Re: Proposal 2: Exceptions and @nogc

2017-04-15 Thread MysticZach via Digitalmars-d
On Sunday, 9 April 2017 at 20:14:24 UTC, Walter Bright wrote: ... a general mechanism for safe refcounting of classes has eluded us. Regardless of my other comments, which are maybe a little uninformed, DIP74 seems pretty good: https://wiki.dlang.org/DIP74 Manu started a thread asking about

Re: Interpolated strings

2017-04-15 Thread cym13 via Digitalmars-d
On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote: Hi all I've been wanting to have support for interpolated strings in D for some time now that will allow you to write e.g.: auto a = 7; writeln( $"{a} times 3 is {a*3}" ); Code speaks louder that words so I've made a PR that

Interpolated strings

2017-04-15 Thread Jonas Drewsen via Digitalmars-d
Hi all I've been wanting to have support for interpolated strings in D for some time now that will allow you to write e.g.: auto a = 7; writeln( $"{a} times 3 is {a*3}" ); Code speaks louder that words so I've made a PR that adds this support to ddmd as a RFC [1]. The compiler will basic

Re: Thoughts from newcommer

2017-04-15 Thread Isaac Gouy via Digitalmars-d
On Thursday, 13 April 2017 at 03:29:26 UTC, Joakim wrote: Cooperative with what? He chose not to include D anymore, which at one point dominated the shootout, and says we should just start our own site: https://forum.dlang.org/post/no8klt$1d1i$1...@digitalmars.com When did D dominate? ht

Re: What are we going to do about mobile?

2017-04-15 Thread Johan Engelen via Digitalmars-d
On Saturday, 15 April 2017 at 15:11:08 UTC, Laeeth Isharc wrote: Not sure how much memory ldc takes to build. If it would be helpful for ARM I could contribute a couple of servers on scaleway or similar. That'd be great. Can you take initiative and send a mail to Kai and ask him about the

Re: What are we going to do about mobile?

2017-04-15 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 15 April 2017 at 09:52:49 UTC, Johan Engelen wrote: On Thursday, 6 April 2017 at 09:39:05 UTC, kinke wrote: What LDC would primarily need is a CI platform supporting ARM (and ideally AArch64) in order to make it a true first-class target. We don't know of a free CI platform, so A

Re: [OT] Re: Proposal 2: Exceptions and @nogc

2017-04-15 Thread Timon Gehr via Digitalmars-d
On 15.04.2017 07:04, Timon Gehr wrote: You said "come about when". Those things "came about" in Haskell. This is the original monad paper (in an fp context): homepages.inf.ed.ac.uk/wadler/papers/marktoberdorf/baastad.pdf Actually, it is this one: https://page.mi.fu-berlin.de/scravy/realworld

Re: Walter and Andrei and community relationship management

2017-04-15 Thread Joseph Rushton Wakeling via Digitalmars-d
On Friday, 14 April 2017 at 21:09:23 UTC, Walter Bright wrote: Fundamentally changing the language is a major undertaking. The language is complicated, there's a lot of baggage, and the reason things are the way they are is usually unclear. Having a handwavy post proposing such things is just n

Re: [OT] Re: Proposal 2: Exceptions and @nogc

2017-04-15 Thread Timon Gehr via Digitalmars-d
On 15.04.2017 10:45, Walter Bright wrote: On 4/14/2017 10:04 PM, Timon Gehr wrote: I don't buy that aiming for inconsistencies is a way to make a system more intuitive when the user didn't have prior exposure to a similar system. Please propose a better design. I'm criticizing the justificat

Re: Proposal 2: Exceptions and @nogc

2017-04-15 Thread Nick Treleaven via Digitalmars-d
On Thursday, 13 April 2017 at 05:29:28 UTC, Dukc wrote: The reason it needs: { scope Object ob = new RefCountableType("foo"); scope ob2 = ob; ob = new RefCountableType("bar"); } The "foo" instance would leak if the destruction would be done by calling at end of scope. I assume you

Re: CTFE Status 2

2017-04-15 Thread Stefan Koch via Digitalmars-d
On Saturday, 15 April 2017 at 10:30:57 UTC, Moritz Maxeiner wrote: On Saturday, 15 April 2017 at 10:10:54 UTC, Stefan Koch wrote: On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: Hi Guys, due to the old CTFE status thread getting to page 30, I am now starting a new one. [...]

Re: CTFE Status 2

2017-04-15 Thread Moritz Maxeiner via Digitalmars-d
On Saturday, 15 April 2017 at 10:10:54 UTC, Stefan Koch wrote: On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: Hi Guys, due to the old CTFE status thread getting to page 30, I am now starting a new one. [...] The llvm backend is back in a fully working state. It's about 2ti

Re: CTFE Status 2

2017-04-15 Thread Stefan Koch via Digitalmars-d
On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: Hi Guys, due to the old CTFE status thread getting to page 30, I am now starting a new one. [...] The llvm backend is back in a fully working state. It's about 2times slower in my then my interpreter ;)

Re: What are we going to do about mobile?

2017-04-15 Thread Johan Engelen via Digitalmars-d
On Thursday, 6 April 2017 at 09:39:05 UTC, kinke wrote: What LDC would primarily need is a CI platform supporting ARM (and ideally AArch64) in order to make it a true first-class target. We don't know of a free CI platform, so ARM isn't tested automatically, and it's currently mostly up to po

Re: Walter and Andrei and community relationship management

2017-04-15 Thread Walter Bright via Digitalmars-d
On 4/14/2017 11:08 PM, Shachar Shemesh wrote: Keep in mind that other languages, such as C++, will not even look at any proposals that are not detailed and complete. While nothing there is perfect, I don't agree with that point. Language changes are being proposed on the mailing list all the ti

https://m.facebook.com/login

2017-04-15 Thread Allie via Digitalmars-d
https://m.facebook.com/login

Re: [OT] Re: Proposal 2: Exceptions and @nogc

2017-04-15 Thread Walter Bright via Digitalmars-d
On 4/14/2017 10:04 PM, Timon Gehr wrote: I don't buy that aiming for inconsistencies is a way to make a system more intuitive when the user didn't have prior exposure to a similar system. Please propose a better design.

Re: DConf 2017 Berlin - Streaming ?

2017-04-15 Thread Joakim via Digitalmars-d
On Saturday, 15 April 2017 at 07:15:06 UTC, Nick B wrote: Hi Can anyone advise if there will be live streaming or will there only YouTube videos after the event. Not that I'm complaining. thanks Nick They had it on Ustream last year, guessing they will again. Only problem last year is th

DConf 2017 Berlin - Streaming ?

2017-04-15 Thread Nick B via Digitalmars-d
Hi Can anyone advise if there will be live streaming or will there only YouTube videos after the event. Not that I'm complaining. thanks Nick