در شنبه 25 مهٔ 2013، ساعت 0:14:52 (UTC+4:30)، Ziad Hatahet نوشته: > > On Fri, May 24, 2013 at 9:55 AM, Sanjay <balas...@gmail.com <javascript:>> > wrote: > >> >> As for Spark, as with LINQ, that kind of terse functional method-calling >> in Go is, AFAIK, impossible. But, again, look at Storm's API for doing >> realtime computation: >> https://github.com/nathanmarz/storm/blob/master/storm-core/src/jvm/storm/trident/tuple/TridentTuple.java. >> >> You see the exact same kind of thing. If Storm can do it with a low-level >> API thats basically untyped, I don't see why Go couldn't. >> > > > Though in Scala you could do something along the lines of: > > val i = tuple.get[Int](0) // Returned value is of type Int > val s = tuple.get[String](0) // Returned value is of type String > > As such, you have a clean, single method interface, instead of exposing > multiple getters (getXXX). > > > -- > Ziad > >
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.