On 20 April 2016 at 18:09, Greg Keogh <gfke...@gmail.com> wrote:

> Now I'm trying to shrink this down to the smallest possible
> functional-looking code possible
>

On 20 April 2016 at 18:17, Greg Keogh <gfke...@gmail.com> wrote:

> new Action(async () => { var r = await GetStuffAsync("Key1"); updateUI(r)
> }).Invoke();
> new Action(async () => { var r = await GetStuffAsync("Key2"); updateUI(r)
> }).Invoke();
> new Action(async () => { var r = await GetStuffAsync("Key3"); updateUI(r)
> }).Invoke();
>

Umm, are you code golfing now to avoid naming anything? Or are you after
genuine feedback on functional style in C#?

p.s. Sensible application of functional style in C# is *not* code golfing!
:)

--
Thomas Koster

Reply via email to