Re: Last - but not least! - two DConf talks

2015-07-18 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-07-18 11:43, "Marc =?UTF-8?B?U2Now7x0eiI=?= " wrote: The AST for this statement would look something like: (DeclStatement type=(Keyword "auto") name=(Identifier "a") value=(AssignExpression exp=(VariableOrParenlessCall var=(Identifier "foo" This would probably be considerably hard

Re: Last - but not least! - two DConf talks

2015-07-18 Thread via Digitalmars-d-announce
On Friday, 17 July 2015 at 18:58:04 UTC, Jacob Carlborg wrote: On 2015-07-17 15:00, "Marc =?UTF-8?B?U2Now7x0eiI=?= " wrote: That could only happen after semantic analysis, but the ambiguity needs to be resolved during parsing. Aren't there other things in D that already have this problem:

Re: Last - but not least! - two DConf talks

2015-07-17 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-07-17 15:00, "Marc =?UTF-8?B?U2Now7x0eiI=?= " wrote: That could only happen after semantic analysis, but the ambiguity needs to be resolved during parsing. Aren't there other things in D that already have this problem: auto a = foo; Is "foo" a variable or a method? That could work

Re: Last - but not least! - two DConf talks

2015-07-17 Thread via Digitalmars-d-announce
On Friday, 17 July 2015 at 11:28:45 UTC, Jacob Carlborg wrote: I would say that it should first try to interpret "element" as an argument to "each", if that doesn't work, try as a parameter for the delegate. Just going with the longest match, if that doesn't work try the next thing. That coul

Re: Last - but not least! - two DConf talks

2015-07-17 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-07-16 13:55, Atila Neves wrote: I tried out something like this to see how I'd like it before the talk, and I didn't. I mentioned it but I should've drawn more attention to it, it'd look like this: @When!(`...`, { ... }) {} The empty block needed at the end was just too ugly. Yeah, t

Re: Last - but not least! - two DConf talks

2015-07-17 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-07-17 10:16, "Marc =?UTF-8?B?U2Now7x0eiI=?= " wrote: Does your implementation support parameterized lambdas? I can already see the next ambiguity: someRange.each (element) { writeln(element); } Do the parentheses belong to the lambda on the right or the function on

Re: Last - but not least! - two DConf talks

2015-07-17 Thread via Digitalmars-d-announce
On Thursday, 16 July 2015 at 08:59:43 UTC, Jacob Carlborg wrote: On 2015-07-16 10:26, "Marc =?UTF-8?B?U2Now7x0eiI=?= " wrote: Do mixin templates work on module level? They can even have an identifier. Yes. But a mixin template seems only be able to contain declarations. How did you plan to

Re: Last - but not least! - two DConf talks

2015-07-16 Thread Atila Neves via Digitalmars-d-announce
On Wednesday, 15 July 2015 at 19:28:13 UTC, Jacob Carlborg wrote: On 2015-07-13 09:12, Atila Neves wrote: https://www.reddit.com/r/programming/comments/3d3ooa/behaviourdriven_development_with_d_and_cucumber/ Also on HN, but as usual can't post the link. The comment about not having to name

Re: Last - but not least! - two DConf talks

2015-07-16 Thread Atila Neves via Digitalmars-d-announce
On Thursday, 16 July 2015 at 08:26:58 UTC, Marc Schütz wrote: On Wednesday, 15 July 2015 at 19:28:13 UTC, Jacob Carlborg wrote: On 2015-07-13 09:12, Atila Neves wrote: https://www.reddit.com/r/programming/comments/3d3ooa/behaviourdriven_development_with_d_and_cucumber/ Also on HN, but as usu

Re: Last - but not least! - two DConf talks

2015-07-16 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-07-16 10:26, "Marc =?UTF-8?B?U2Now7x0eiI=?= " wrote: Do mixin templates work on module level? They can even have an identifier. Yes. But a mixin template seems only be able to contain declarations. How did you plan to use it? Unfortunately there are syntactical ambiguities:

Re: Last - but not least! - two DConf talks

2015-07-16 Thread via Digitalmars-d-announce
On Wednesday, 15 July 2015 at 19:28:13 UTC, Jacob Carlborg wrote: On 2015-07-13 09:12, Atila Neves wrote: https://www.reddit.com/r/programming/comments/3d3ooa/behaviourdriven_development_with_d_and_cucumber/ Also on HN, but as usual can't post the link. The comment about not having to name

Re: Last - but not least! - two DConf talks

2015-07-15 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-07-13 09:12, Atila Neves wrote: https://www.reddit.com/r/programming/comments/3d3ooa/behaviourdriven_development_with_d_and_cucumber/ Also on HN, but as usual can't post the link. The comment about not having to name the steps. One way to do that could be something like this: step

Re: Last - but not least! - two DConf talks

2015-07-15 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-07-13 09:12, Atila Neves wrote: https://www.reddit.com/r/programming/comments/3d3ooa/behaviourdriven_development_with_d_and_cucumber/ Also on HN, but as usual can't post the link. Atila Really great talk. We're using Cucumber (or rather a similar tool called Turnip) a lot at work

Re: Last - but not least! - two DConf talks

2015-07-15 Thread Atila Neves via Digitalmars-d-announce
On Tuesday, 14 July 2015 at 20:18:40 UTC, Brad Anderson wrote: On Monday, 13 July 2015 at 07:12:48 UTC, Atila Neves wrote: On Friday, 10 July 2015 at 18:33:04 UTC, Andrei Alexandrescu wrote: Spread the word! https://www.youtube.com/watch?v=bxSPCmwqgYs https://www.youtube.com/watch?v=jNQF3m5e2l

Re: Last - but not least! - two DConf talks

2015-07-14 Thread Brad Anderson via Digitalmars-d-announce
On Monday, 13 July 2015 at 07:12:48 UTC, Atila Neves wrote: On Friday, 10 July 2015 at 18:33:04 UTC, Andrei Alexandrescu wrote: Spread the word! https://www.youtube.com/watch?v=bxSPCmwqgYs https://www.youtube.com/watch?v=jNQF3m5e2l0 Andrei https://www.reddit.com/r/programming/comments/3d3ooa

Re: Last - but not least! - two DConf talks

2015-07-13 Thread Jack Stouffer via Digitalmars-d-announce
On Friday, 10 July 2015 at 18:33:04 UTC, Andrei Alexandrescu wrote: Spread the word! https://www.reddit.com/r/programming/comments/3d66zk/why_i_love_d_an_undergrad_shares_his_experience/

Re: Last - but not least! - two DConf talks

2015-07-13 Thread Atila Neves via Digitalmars-d-announce
On Friday, 10 July 2015 at 18:33:04 UTC, Andrei Alexandrescu wrote: Spread the word! https://www.youtube.com/watch?v=bxSPCmwqgYs https://www.youtube.com/watch?v=jNQF3m5e2l0 Andrei https://www.reddit.com/r/programming/comments/3d3ooa/behaviourdriven_development_with_d_and_cucumber/ Also on HN

Re: Last - but not least! - two DConf talks

2015-07-10 Thread cym13 via Digitalmars-d-announce
On Friday, 10 July 2015 at 18:33:04 UTC, Andrei Alexandrescu wrote: Spread the word! https://www.youtube.com/watch?v=bxSPCmwqgYs https://www.youtube.com/watch?v=jNQF3m5e2l0 Andrei Erich's presentation is now my favourite one from this year's DConf. If you read this Erich, I really love your

Last - but not least! - two DConf talks

2015-07-10 Thread Andrei Alexandrescu via Digitalmars-d-announce
Spread the word! https://www.youtube.com/watch?v=bxSPCmwqgYs https://www.youtube.com/watch?v=jNQF3m5e2l0 Andrei