Re: First-class polymorphic lamdas?

2016-06-03 Thread QAston via Digitalmars-d
On Friday, 3 June 2016 at 23:25:25 UTC, QAston wrote: On Friday, 5 February 2016 at 20:36:20 UTC, ZombineDev wrote: Background: I'm working on a transducers proposal for Phobos, which generalizes ranges to support push data-flow model (in addition to the current pull-only) enabling composable

Re: First-class polymorphic lamdas?

2016-06-03 Thread QAston via Digitalmars-d
On Friday, 5 February 2016 at 20:36:20 UTC, ZombineDev wrote: Background: I'm working on a transducers proposal for Phobos, which generalizes ranges to support push data-flow model (in addition to the current pull-only) enabling composable algorithmic transformations that can be applied to othe

Re: First-class polymorphic lamdas?

2016-06-03 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 3 June 2016 at 11:11:50 UTC, Vladimir Panteleev wrote: For some reason I didn't realize you can also create a value type templated functor by using explicitly nested structs. I had stumbled upon the new feature from https://github.com/dlang/dmd/pull/5518 by accident while working on

Re: First-class polymorphic lamdas?

2016-06-03 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 5 February 2016 at 20:36:20 UTC, ZombineDev wrote: In D, on the other hand, the compiler stores a reference to the lambda function as a function-pointer (or a delagate-pointer, if any local variables are captured), however this precludes support for polymorhpic lambdas. AFAIU, delega

First-class polymorphic lamdas?

2016-02-05 Thread ZombineDev via Digitalmars-d
Background: I'm working on a transducers proposal for Phobos, which generalizes ranges to support push data-flow model (in addition to the current pull-only) enabling composable algorithmic transformations that can be applied to other sources of data such as RX observables[0], signal & slots, c