That's all well and good, but as long as other JVM languages are not
written with Scala in mind, we don't want them to have to write
Foo$.MODULE$.bar(), which is ugly in the prettiest untyped languages.
2009/7/7 Kevin Wright <
kev.lee.wright@...>:
> Scala has done a lot to remove unnecessary Java features as well as adding
> new ones.
> "arbitrary static methods" is a good example of this.
>
> I personally can't stand the things, they're a hangover from the global
> state of procedural languages and the C++ heritage. If the singleton
> pattern had come along first then I seriously doubt that static methods
> would even exist.
>
> Dropping this kind of baggage is as much a part of evolution as adding new
> functionality. Would you argue that we don't make good use of our genetic
> "virtual machines" because we lack tails and luxurious full-body hair?
>
>
> On Tue, Jul 7, 2009 at 10:56 AM, Arnold deVos
> <
adv-list-scala@...> wrote:
>>
>> In the comments it was pointed out that scala does not exercise every jvm
>> capability (e.g. you can't write arbitrary static methods in scala). This is
>> not a goal for scala but perhaps it should be for java.
>>
>> In this view, java would remain the fundamental jvm language even though
>> most code would eventually be written in other, higher-level languages,
>> especially scala.
>>
>> - Arnold
>>
>> On Tue, 7 Jul 2009 16:54:17 Antonio Rodríguez S. wrote:
>> > Hello,
>> >
>> > I read the post from James yesterday and in principle I share his
>> > statements. Scala has everything to replace Java in almost any area
>> > where
>> > Java is well suited, what doesn't mean, there is not place for other
>> > languages. But I think no one can say how it'll really be in the future,
>> > if
>> > the community will really switch to Scala. But despite how the future
>> > trends will look like, I'll use Scala instead of Java as much as I can.
>> >
>> > Cheers,
>> >
>> > 2009/7/7 Yang Sai <
yangsai1119@...>
>> >
>> > > Hello all,
>> > >
>> > > Today I came across with this blog post:
>> > >
>> > >
>> > >
http://macstrac.blogspot.com/2009/04/scala-as-long-term-replacement-for.h>> > >tml
>> > >
>> > > Seems like James has great faith in Scala. I do, too, as Scala has got
>> > > many amazing strengths. But to replace Java?
>> > > I've come across with this Introduction to Functional Languages
>> > > lately:
http://java.dzone.com/articles/introduction-functional . One
>> > > statement was that "An important observation is that functional
>> > > languages are not a replacement for procedural or object-oriented
>> > > programming language", which I totally agree with. The “polygot
>> > > programmer” seems to be the future trend for me.
>> > >
>> > > So what's your view on it?
>> > >
>> > > Cheers,
>> > >
>> > > --
>> > > Sai Yang
>> > > Beijing 51CTO Information Technology Ltd
>>
>>
>> --
>> Arnold deVos
>> Langdale Consultants
>
--
Ricky Clarkson
Java Programmer, AD Holdings
+44 1565 770804
Skype: ricky_clarkson
Google Talk:
ricky.clarkson@...