Yes,

  int x = "hello"

obviously needs to compile but fail at runtime when in dynamic mode
(to cater for what would be somewhat dubious style of metaprogramming
in this case) and does indeed fail compilation in grumpy/static mode.

Cheers, Paul.

On Tue, Nov 8, 2011 at 6:03 PM, Ricky Clarkson <[email protected]> wrote:
> That's what I did about 5 years ago. Perhaps something has changed since then 
> but I believe int x = "hello" still compiles in Groovy.
>
> Also, Scala's .NET compatibility predates Fantom so in order to copy it 
> Martin must be even smarter than I thought.
> -----Original Message-----
> From: Russel Winder <[email protected]>
> Sender: [email protected]
> Date: Tue, 08 Nov 2011 08:33:35
> To: <[email protected]>
> Reply-To: [email protected]
> Subject: Re: [The Java Posse] Re: Yet another JVM lang: Extend
>
> On Mon, 2011-11-07 at 16:52 +0000, Ricky Clarkson wrote:
>> That's pretty much what I was trying to say. Groovy is a half-arsed Java 
>> imitation (to me), similarly Fantom->Scala, PHP->Perl, Ruby->(Smalltalk, 
>> Perl)
>
> Ricky,
>
> If you are thinking of Groovy as a half-arsed Java imitation, you really
> need to actually look at the two languages and compare them.
>
> Interestingly isn't it Scala copying Fantom to be a language for the
> CLR?
>
> --
> Russel.
> =============================================================================
> Dr Russel Winder      t: +44 20 7585 2200   voip: sip:[email protected]
> 41 Buckmaster Road    m: +44 7770 465 077   xmpp: [email protected]
> London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
>
> --
> You received this message because you are subscribed to the Google Groups 
> "The Java Posse" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/javaposse?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to