Re: A new blog article detailing the alternative function syntax

2013-08-09 Thread Gary Willoughby
On Thursday, 8 August 2013 at 22:37:04 UTC, Andrei Alexandrescu wrote: If you want me to post to reddit tomorrow morning, let me know. My good post karma is likely to push the post into visibility quickly. On the other hand, if you post it yourself it will improve _your_ karma. Tradeoffs,

Re: A new blog article detailing the alternative function syntax

2013-08-09 Thread monarch_dodra
On Friday, 9 August 2013 at 08:03:45 UTC, Gary Willoughby wrote: On Thursday, 8 August 2013 at 22:37:04 UTC, Andrei Alexandrescu wrote: If you want me to post to reddit tomorrow morning, let me know. My good post karma is likely to push the post into visibility quickly. On the other hand, if

Re: A new blog article detailing the alternative function syntax

2013-08-09 Thread Rory McGuire
Quick question: does UFCS allow you to make a type implement an interface?

Re: A new blog article detailing the alternative function syntax

2013-08-09 Thread Dejan Lekic
On Thursday, 8 August 2013 at 19:24:31 UTC, Ary Borenszweig wrote: On 8/8/13 3:53 PM, Gary Willoughby wrote: I've just finished a new blog article on the subject of alternative function syntax in D. I guess this is pretty straightforward stuff to all the people here but was a major source of

Re: A new blog article detailing the alternative function syntax

2013-08-09 Thread Jonathan M Davis
On Friday, August 09, 2013 12:25:25 Rory McGuire wrote: Quick question: does UFCS allow you to make a type implement an interface? No. _All_ that UFCS does is take auto result = foo.bar(args); and lower it to auto result = bar(foo, args); It's purely syntactic sugar, much as that sugar has

Re: A new blog article detailing the alternative function syntax

2013-08-09 Thread Andrei Alexandrescu
On 8/9/13 1:03 AM, Gary Willoughby wrote: On Thursday, 8 August 2013 at 22:37:04 UTC, Andrei Alexandrescu wrote: If you want me to post to reddit tomorrow morning, let me know. My good post karma is likely to push the post into visibility quickly. On the other hand, if you post it yourself it

Re: A new blog article detailing the alternative function syntax

2013-08-08 Thread Walter Bright
On 8/8/2013 12:15 PM, Walter Bright wrote: s/compliments/complements/ The frequency with which I see this error is a pet peeve of mine!

Re: A new blog article detailing the alternative function syntax

2013-08-08 Thread Walter Bright
On 8/8/2013 11:53 AM, Gary Willoughby wrote: I personally think this is more confusing than many people think. Hopefully this will quickly arm a developer with knowledge to be able to read and understand most D code. Let me know if i've missed anything important.

Re: A new blog article detailing the alternative function syntax

2013-08-08 Thread Ary Borenszweig
On 8/8/13 3:53 PM, Gary Willoughby wrote: I've just finished a new blog article on the subject of alternative function syntax in D. I guess this is pretty straightforward stuff to all the people here but was a major source of confusion to me (and others?) when first learning D. I personally

Re: A new blog article detailing the alternative function syntax

2013-08-08 Thread Tofu Ninja
On Thursday, 8 August 2013 at 19:24:31 UTC, Ary Borenszweig wrote: On 8/8/13 3:53 PM, Gary Willoughby wrote: I've just finished a new blog article on the subject of alternative function syntax in D. I guess this is pretty straightforward stuff to all the people here but was a major source of

Re: A new blog article detailing the alternative function syntax

2013-08-08 Thread Gary Willoughby
On Thursday, 8 August 2013 at 19:15:29 UTC, Walter Bright wrote: lots... I've made the corrections, thanks. I really need to work on my English. I haven't written anything in years and it's harder work than i remember. Nothing that practise, practise, practise ...and a spell checker won't

Re: A new blog article detailing the alternative function syntax

2013-08-08 Thread anonymous
On Thursday, 8 August 2013 at 18:53:47 UTC, Gary Willoughby wrote: I've just finished a new blog article on the subject of alternative function syntax in D. I guess this is pretty straightforward stuff to all the people here but was a major source of confusion to me (and others?) when first

Re: A new blog article detailing the alternative function syntax

2013-08-08 Thread Gary Willoughby
On Thursday, 8 August 2013 at 20:37:35 UTC, anonymous wrote: I think you should mention the terms UFCS and IFTI, since those are used by D folk. UFCS: Universal Function Call Syntax, i.e. dot notation. IFTI: Implicit Function Template Instantiation, i.e. template parameters can be omitted

Re: A new blog article detailing the alternative function syntax

2013-08-08 Thread Brad Anderson
On Thursday, 8 August 2013 at 19:18:22 UTC, Walter Bright wrote: On 8/8/2013 12:15 PM, Walter Bright wrote: s/compliments/complements/ The frequency with which I see this error is a pet peeve of mine! I know! It's rediculous!

Re: A new blog article detailing the alternative function syntax

2013-08-08 Thread Brad Anderson
On Thursday, 8 August 2013 at 19:15:29 UTC, Walter Bright wrote: Under Extension Methods, a huge reason for them is to head off the temptation to write 'kitchen sink' classes that are filled with every conceivable method. The desired approach is to have the class implement the bare minimum of

Re: A new blog article detailing the alternative function syntax

2013-08-08 Thread Andrei Alexandrescu
On 8/8/13 1:28 PM, Gary Willoughby wrote: On Thursday, 8 August 2013 at 19:15:29 UTC, Walter Bright wrote: lots... I've made the corrections, thanks. I really need to work on my English. I haven't written anything in years and it's harder work than i remember. Nothing that practise, practise,

Re: A new blog article detailing the alternative function syntax

2013-08-08 Thread Walter Bright
On 8/8/2013 3:02 PM, Brad Anderson wrote: On Thursday, 8 August 2013 at 19:15:29 UTC, Walter Bright wrote: Under Extension Methods, a huge reason for them is to head off the temptation to write 'kitchen sink' classes that are filled with every conceivable method. The desired approach is to have

Re: A new blog article detailing the alternative function syntax

2013-08-08 Thread Jesse Phillips
On Thursday, 8 August 2013 at 18:53:47 UTC, Gary Willoughby wrote: I've just finished a new blog article on the subject of alternative function syntax in D. I guess this is pretty straightforward stuff to all the people here but was a major source of confusion to me (and others?) when first

Re: A new blog article detailing the alternative function syntax

2013-08-08 Thread Miles Stoudenmire
s/quiet easily/quite easily/g Nice article. I wish C++ had UFCS... On 8 August 2013 20:40, Jesse Phillips jesse.k.phillip...@gmail.com wrote: On Thursday, 8 August 2013 at 18:53:47 UTC, Gary Willoughby wrote: I've just finished a new blog article on the subject of alternative function