Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Scala and Java: A Quick Swing Comparison by Example
Index -> Programming, Java -> Java Tutorials
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
wtd




PostPosted: Thu Dec 08, 2005 11:27 pm   Post subject: (No subject)

Well, you might have:

code:
foo "hello", "world"


Which is equivalent to:

code:
foo("hello", "world")


And that's all well and good, but...

code:
bar foo "hello", "world", "wooble"


Is this:

code:
bar(foo("hello"), "world", "wooble")


One thing that constructing the Swing comparisons in previous posts did make me envy from the Smalltalk side of things... Smalltalk's semi-colon.

Being able to easily send multiple messages to the same receiver without having to specify the receiver repeatedly.
Sponsor
Sponsor
Sponsor
sponsor
rizzix




PostPosted: Thu Dec 08, 2005 11:48 pm   Post subject: (No subject)

that's why Obj-C's/Smalltalk's multi-part methods are soo cool! (but implementing that would mean "No Java Compatibility".

edit: wait.. OR.. define a tuple as (T, K, L, ...) then you could have the cake and eat it too Wink where all java methods are methods with tuples.
Display posts from previous:   
   Index -> Programming, Java -> Java Tutorials
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 17 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: