Just another Perl shrine | |
PerlMonks |
Re: scala vs perl (5 and 6)by moritz (Cardinal) |
on Jun 02, 2013 at 10:16 UTC ( [id://1036571]=note: print w/replies, xml ) | Need Help?? |
I haven't written any Scala code myself, so the following is only hearsay. Scala is supposed to be a rather nice language, and its features often appeal to Perl programmers. The downsides are usually cited as the following:
The last point needs a bit explaining. On the one hand it's nice to have access to the rich of java libraries. On the other hand, those libraries are designed for java, and the limitations that java has. For example Java doesn't you allow to pass callback functions (because it has no functions, and no references to methods), so whenever you need to pass a callback to a library, you have to implement an interface instead with a method that the library calls for you, which is much more boilerplate. Likewise container libraries written in Java are limited by Java's type erasure. That said, I would like to encourage you to simply try it out, and see if you like it. Programming languages very much cater to personal preferences, and while some are nearly universally hated (or do you know somebody who does COBOL for fun?), most have their loyal followers who are very productive with their language of choice. Knowing other programming languages typically also makes you a better Perl programmer.
In Section
Seekers of Perl Wisdom
|
|