http://kinoshita.eti.br
http://tupilabs.com
--- Em sex, 15/2/13, Bruno P. Kinoshita escreveu:
> De: Bruno P. Kinoshita
> Assunto: Re: [functor] Change default arity of Function, Predicate and
> Procedure
> Para: "Commons Developers List" ,
> "gudnabr...@gmail.com"
rs List
> Sent: Friday, February 15, 2013 3:16 PM
> Subject: Re: [functor] Change default arity of Function, Predicate and
> Procedure
>
> On Fri, Feb 15, 2013 at 11:12 AM, Bruno P. Kinoshita
> wrote:
>
>> Hi Matt,
>>
>> Thanks for the pointer, I forgot i
onal programming languages :)
>
> Bruno P. Kinoshita
> http://kinoshita.eti.br
> http://tupilabs.com
>
>
> >________________
> > From: Matt Benson
> >To: Commons Developers List ; Bruno P. Kinoshita
>
> >Sent: Friday, February 15, 2013
gt;> Thank you in advance!
>>
>> ps: in Java 8, the @FunctionalInterface does not guarantee the arity of
>> classes, but raises compile time errors if you define an invalid functional
>> interface (like one interface with two abstract public methods). This
>> appl
onalInterface and used with lambdas :)
>
> Bruno P. Kinoshita
> http://kinoshita.eti.br
> http://tupilabs.com
>
>
> >________________
> > From: Benedikt Ritter
> >To: Commons Developers List
> >Sent: Friday, February 15, 2013 6:54 AM
> >
t;Sent: Friday, February 15, 2013 6:54 AM
>Subject: Re: [functor] Change default arity of Function, Predicate and
>Procedure
>
>2013/2/14 Oliver Heger
>
>> Am 14.02.2013 16:51, schrieb Matt Benson:
>>
>> I would say that certainly one would often want to create a
2013/2/14 Oliver Heger
> Am 14.02.2013 16:51, schrieb Matt Benson:
>
> I would say that certainly one would often want to create an API like
>> you've described. What I am reluctant not to support is:
>>
>> class Foo {
>>static void add(Argumented> CharSequence>> functor);
>> }
>>
>> Foo.ad
Am 14.02.2013 16:51, schrieb Matt Benson:
I would say that certainly one would often want to create an API like
you've described. What I am reluctant not to support is:
class Foo {
static void add(Argumented> functor);
}
Foo.add(new BinaryFunction() {});
Foo.add(new BinaryProcedure() {});
F
I would say that certainly one would often want to create an API like
you've described. What I am reluctant not to support is:
class Foo {
static void add(Argumented> functor);
}
Foo.add(new BinaryFunction() {});
Foo.add(new BinaryProcedure() {});
Foo.add(new BinaryPredicate() {});
The argume
Hi Matt,
Matt Benson wrote:
> Once again, an enum wouldn't readily be able to contribute to your
> functor's being able to participate in some method by type signature;
> i.e., I want to support the use case of:
>
> add(Argumented somethingThatTakesTwoArguments);
>
> Maybe this isn't a worthwhi
Once again, an enum wouldn't readily be able to contribute to your
functor's being able to participate in some method by type signature; i.e.,
I want to support the use case of:
add(Argumented somethingThatTakesTwoArguments);
Maybe this isn't a worthwhile goal, but so far I don't see anything els
On 14 February 2013 09:13, Jörg Schaible wrote:
> Benedikt Ritter wrote:
>
>> Hi Matt,
>>
>>
>> 2013/2/13 Matt Benson
>>
>>> TBH, I can't recall what the argument was against "Functor" either; I
>>> think it had something to do with potentially confusing users of other
>>> libraries?
>>>
>>> Func
Benedikt Ritter wrote:
> Hi Matt,
>
>
> 2013/2/13 Matt Benson
>
>> TBH, I can't recall what the argument was against "Functor" either; I
>> think it had something to do with potentially confusing users of other
>> libraries?
>>
>> Functor
>> |_NullaryFunctor
>> |_UnaryFunctor
>> |_BinaryFuncto
Hi Jörg,
I like the simplicity annotations can provide.
As Matt has pointed out Annotations do not define types, which makes it
hard to let the compiler do the validation of the code.
We could implement a custom annotation post processor. But that would
require additional setup for users.
Benedik
d name.
> >
> > Again: If it practical to just call it Arity, then you should go ahead
> > (pragmatism wins over oo purism ;-)
> >
> > Benedikt
> >
> >
> > >
> > > Thanks!!
> > >
> > > [1] http://en.wikibooks.org/wiki/Hask
Hi Jorg,
We had at some point talked about whether these could be done with a
simple annotation. I had hoped for something that could be expressed in
terms enforceable by the compiler.
Matt
On Wed, Feb 13, 2013 at 10:22 AM, Jörg Schaible wrote:
> Hi,
>
> Matt Benson wrote:
>
> > TBH, I can'
Hi,
Matt Benson wrote:
> TBH, I can't recall what the argument was against "Functor" either; I
> think it had something to do with potentially confusing users of other
> libraries?
>
> Functor
> |_NullaryFunctor
> |_UnaryFunctor
> |_BinaryFunctor
>
> *is* the current state. :) Now, when I wok
gt; > >> > >
> > >> > > Thanks!
> > >> > >
> > >> > > Bruno P. Kinoshita
> > >> > > http://kinoshita.eti.br
> > >> > > http://tupilabs.com
> > >> > >
> > >> &
rs
> [2]
> http://download.java.net/lambda/b76/docs/api/java/util/function/BinaryOperator.html
>
> Bruno P. Kinoshita
> http://kinoshita.eti.br
> http://tupilabs.com
>
>
> - Original Message -
> > From: Benedikt Ritter
> > To: Commons Developers Lis
om: Matt Benson
> > To: Commons Developers List
> > Cc:
> > Sent: Monday, February 11, 2013 8:39 PM
> > Subject: Re: [functor] Change default arity of Function, Predicate and
> Procedure
> >
> > Hi Bruno,
> > No objections here about the Arity interfaces. I
http://tupilabs.com
- Original Message -
> From: Matt Benson
> To: Commons Developers List
> Cc:
> Sent: Monday, February 11, 2013 8:39 PM
> Subject: Re: [functor] Change default arity of Function, Predicate and
> Procedure
>
> Hi Bruno,
> No objections
; > > > Personally I am satisfied to align with lambda/guava if
> noone else
>> > > objects.
>> > > >
>> > > > Thanks,
>> > > > Matt
>> > > >
>> > > >
>> > > > On Mon, Feb 11, 2013 at 4:25 PM, Br
1] https://github.com/kinow/functor
> > > >> [2] https://github.com/kinow/functor/commits/master
> > > >>
> > > >> Bruno P. Kinoshita
> > > >> http://kinoshita.eti.br
> > > >> http://tupilabs.com
> > > >
2 cents :)
> Benedikt
>
>
>
> 2013/2/11 Bruno P. Kinoshita
>
> > Hi Matt!
> >
> > Great! I'll commit these changes tomorrow if there are no objections.
> >
> > Thanks!
> >
> > Bruno P. Kinoshita
> > http://kinoshita.eti.br
> > h
--- Original Message -
> > From: Matt Benson
> > To: Commons Developers List
> > Cc:
> > Sent: Monday, February 11, 2013 8:39 PM
> > Subject: Re: [functor] Change default arity of Function, Predicate and
> Procedure
> >
> > Hi Bruno,
> > No obje
8:39 PM
> Subject: Re: [functor] Change default arity of Function, Predicate and
> Procedure
>
> Hi Bruno,
> No objections here about the Arity interfaces. I see that your master
> branch also contains changes to migrate Unary* to * and * to Nullary*.
> Personally I am satisfi
s/master
>
> Bruno P. Kinoshita
> http://kinoshita.eti.br
> http://tupilabs.com
>
>
> >
> > From: Bruno P. Kinoshita
> >To: Commons Developers List ; "
> gudnabr...@gmail.com"
> >Sent: Wednesday, January 30, 201
__
> From: Bruno P. Kinoshita
>To: Commons Developers List ; "gudnabr...@gmail.com"
>
>Sent: Wednesday, January 30, 2013 3:58 PM
>Subject: Re: [functor] Change default arity of Function, Predicate and
>Procedure
>
>I think it makes sense and is clear what is do
x27;t
> find them
>> in java.util.functions).
>>
>> Cheers
>>
>> Bruno P. Kinoshita
>> http://kinoshita.eti.br
>> http://tupilabs.com
>>
>>
>> - Original Message -
>> > From: Matt Benson
>> > To: Com
: Matt Benson
> > To: Commons Developers List ; Bruno P.
> Kinoshita
> > Cc:
> > Sent: Tuesday, January 29, 2013 8:57 PM
> > Subject: Re: [functor] Change default arity of Function, Predicate and
> Procedure
> >
> > What about in pure functional languages
Developers List ; Bruno P. Kinoshita
>
> Cc:
> Sent: Tuesday, January 29, 2013 8:57 PM
> Subject: Re: [functor] Change default arity of Function, Predicate and
> Procedure
>
> What about in pure functional languages e.g. Haskell?
>
> Matt
>
>
> On Tue, Jan 29, 201
What about in pure functional languages e.g. Haskell?
Matt
On Tue, Jan 29, 2013 at 4:55 PM, Bruno P. Kinoshita <
brunodepau...@yahoo.com.br> wrote:
> Hi all,
>
> In Java 8 and Guava the default arity of a Function is 1, but in [functor]
> it is 0, IOW, in Java 8 and Guava a Function is by defau
Hi all,
In Java 8 and Guava the default arity of a Function is 1, but in [functor] it
is 0, IOW, in Java 8 and Guava a Function is by default a UnaryFunction, while
in [functor] it is a NullaryFunction.
What do you guys think of changing the default arity of Function, Procedure and
Predicate
33 matches
Mail list logo