I actually got the numbers wrong here. although the final page has 649
printed on it, acrobat informs me that the document is in fact 684 pages
long,

Java (3rd Edition): 684 pages, 7932 KB
Scala (current in trunk): 191 pages, 1312 KB

Why would this be so? I can think of a few reasons:

   - Java has had longer to discover and document ambiguities
   - The Java spec contains more "boilerplate": copyright, legal notices,
   padding, whitespace, etc.
   - Much of what Java considers to be part of the Language in Java is
   library in Scala (and so out of scope for the spec)
   e.g. enums, while loops, break/continue
   - Java has *lots* of special cases that Scala does away with
   e.g. autoboxing, + operator on strings, etc.

Truth be told, it's probably all of the above...


On 4 August 2010 14:06, Fabrizio Giudici <[email protected]>wrote:

>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 8/4/10 11:01 , Kevin Wright wrote:
> >
> > For anyone still labouring under the delusion that Java is a
> > simple language, it's a heavyweight document; running to 650 pages8
> > in almost 8MB but you only really need chapter 14 for this question
> > :)
> >
> Absolute figures are mostly worthless... comparisons help. How long
> are the specs of Scala? Of course, I presume it might also depend on
> the writing style.
>
> - --
> Fabrizio Giudici - Java Architect, Project Manager
> Tidalwave s.a.s. - "We make Java work. Everywhere."
> java.net/blog/fabriziogiudici - www.tidalwave.it/people
> [email protected]
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkxZZdYACgkQeDweFqgUGxcviQCbBSreTUXxWeVBlLjqqLfJSSWM
> VY0AnjlJLJZt25fUTVnGVZIAyB+AsTAx
> =j+FW
> -----END PGP SIGNATURE-----
>
>


-- 
Kevin Wright

mail/google talk: [email protected]
wave: [email protected]
skype: kev.lee.wright
twitter: @thecoda

-- 
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