Vision document for H1 2018

Void-995 void995 at gmail.com
Fri Mar 16 21:37:44 UTC 2018


On Friday, 16 March 2018 at 15:58:25 UTC, Steven Schveighoffer 
wrote:
> On 3/12/18 10:57 AM, Void-995 wrote:
>> On Monday, 12 March 2018 at 10:38:57 UTC, bachmeier wrote:
>>> On Monday, 12 March 2018 at 05:02:31 UTC, Jonathan M Davis 
>>> wrote:
>>>> Now, I actually understand ranges and am very glad that 
>>>> they're there, but as a D newbie, they were annoying, 
>>>> because they were unfamiliar.
>>>
>>> Ranges are D's monads. The only thing missing is the burrito 
>>> tutorials.
>> 
>> I always thought the best spice in D is UFCS. If only there 
>> would be one for local symbols (but that needs either 
>> foundation's decision or I need to write my first DIP and do 
>> something instead of just crying silently into my sleeve).
>
> alias I(alias X) = X;
>
> void main()
> {
>    int y = 5;
>    int bar(int x) { return y * x; }
>    // auto z = 6.bar; // error
>    auto z = 6.I!bar; // OK
> }
>
> https://blog.thecybershadow.net/2015/04/28/the-amazing-template-that-does-nothing/
>
> -Steve

Every time I'm thinking that something is impossible to be 
elegantly and/or easily done even in D - someone proves me wrong.

And common, I just had that little spark of motivation to look 
into DMD, what is my purpose in life now?


More information about the Digitalmars-d-announce mailing list