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

Pure OO vs. Curried Syntax

Name: Anonymous 2010-08-07 23:18

So /prog/, I have looked around and I haven't been able to find any more-or-less pure OO languages with curried syntax. What gives?

It's not uncommon to see: object message message message

Where object message returns an object which accepts takes the next message, but what if the message is a method call that takes parameters? Instead of returning a curried object, you still get: object method(a,b) method(x,y), but never: object method a b method x y -- why is that?

Name: Anonymous 2010-08-08 18:30

>>10
You have misunderstood what I said. To reiterate
I can't say I find it easier to read than the usual foo.bar(baz).quux(xyzzy) notation.
In this sentence, ``it'' refers to >>8's example and I am saying that I do not find it easier to read than the ``usual'' notation. Or to put it another way foo.bar(baz).quux(xyzzy) > self hax: (self anus); age: 12; write: #ansiCCompiler

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