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

Pages: 1-

Magic Functors

Name: Anonymous 2007-03-18 20:22 ID:NQOeyECx

Hey, just been learning some new programming techniques,

whats your opinion of the use of magic functions in large scale development /prog/?

Name: Anonymous 2007-03-18 20:31 ID:DbwsaYl+

magic functions as in http://www.vldb.org/conf/1987/P021.PDF ?

Name: Anonymous 2007-03-19 1:28 ID:fsfxcijB

>>2
no, Im talking about magic funtors.. do you have exp. using them?

Name: Anonymous 2007-03-19 4:27 ID:IBRqvWV5


void magic()
{
   cout << "I'm a magic function LOL" << endl;
}

void main()
{
   magic();
}

Name: Anonymous 2007-03-19 4:52 ID:sqbJ6jEk

>>4
Side effects, in my functions??

That's magic.

Name: Anonymous 2007-03-19 5:02 ID:IBRqvWV5

>>5
its more likely than you think

Name: Anonymous 2007-03-19 7:44 ID:fsfxcijB

>>4
I lauged out loud aghaha

Name: Anonymous 2007-03-20 13:23 ID:C2gNbUOh

>>1
Functors are the retarded way that Java forces you to do function passing.

All decent languages allow for direct passing of functions or at least function pointers. None of this retarded class functorX impliments functorForReallyLongClassNamesInJavaLOL crap.

Name: Anonymous 2007-03-20 13:29 ID:trV+lWGn

    class Arrow a where
        arr :: (b -> c) -> a b c
        pure :: (b -> c) -> a b c
        (>>>) :: a b c -> a c d -> a b d
        first :: a b c -> a (b, d) (c, d)

Name: Anonymous 2007-03-20 13:30 ID:Heaven

wrong thread :(

Name: Anonymous 2007-03-20 13:52 ID:aNBPdDYv

class Functor f where
    fmap :: (a -> b) -> f a -> f b

Name: Anonymous 2007-03-20 14:28 ID:+gBOpfuF

all decent languages allow you to do this:
function a(x){
 Function.prototype.toString=function(){return x};
 alert(a);
}
a('lol whut');

Name: Anonymous 2007-03-20 14:42 ID:aNBPdDYv

>>12
Javascript is not a decent language.

But yes, any language that doesn't offer first class functions is crippled.

Name: Anonymous 2007-03-21 12:43 ID:V+0FElGh

>>13
JavaScript IS decent. It has decent features. It only suffers from lack of standard library (no, not sucky library, just no library), shitty for in, and stupid string<=>int autoshittical conversion.

Name: Anonymous 2007-03-21 15:33 ID:j3t3cPYm

Javascript.. more liek Jabbascript amirite?

Name: Anonymous 2009-01-14 14:44

lol Toy Language

Name: Anonymous 2009-03-06 6:40

First place a fleshlight   for the second   coming of the   latest open source   Easily learned syntax   Broad database connectivity   Massive library of   contributed extensions General?

Name: Anonymous 2010-12-17 1:20

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Name: Sgt.Kabu㟰෾kiman⁎ 2012-05-28 23:27

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

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