Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

java the hut

Name: Anonymous 2011-11-10 9:27

How does one do function pointers in java without having to make a interface followed by anonymous classes. Is there no way just to do a function? Seems like a waste if I have to make a anonymous class per function

Name: Anonymous 2011-11-10 9:33

You need to use a language that is more fit to functional programming, such as C or a Lisp.

Name: Anonymous 2011-11-10 9:49

>>2
more fit to functional programming, such as C
0/10

Name: Anonymous 2011-11-10 9:57

Isn't java.lang.reflect.Method what you're looking for?

Name: Anonymous 2011-11-10 10:20

>>3
C is more fit to functional programming than Java thanks to macros and function pointers.

Name: Anonymous 2011-11-10 10:33

>>5
Sure, but not really.

Name: Anonymous 2011-11-10 10:50


>>1
It's not really a waste. It's just verbose. C# lambdas are under the hood basically like anonymous classes.

Name: Anonymous 2011-11-10 11:05

>>7
C# is shit

Don't change these.
Name: Email:
Entire Thread Thread List