14

Scala is like the teenage child of Java and Python having an identity crisis.

Comments
  • 5
    You couldnt be more wrong

    Also welcome to devrant
  • 0
    @ganjaman thanks! Glad I found it. This made my day
  • 1
    @ganjaman Are you a Scala dev? Starting a new job on Monday, where they use Scala. I'm coming from a C# background so I'm a bit intimidated 😂 Thoughts on working with it? Do you like it?
  • 1
    @Christine im doing ocaml right now (but i have a really sweet scala offer so who knows), but in my past experience it was pretty okay, couldnt mention any big drawback of the language
  • 0
    I'm a scala dev working in big data. It has some really nice features that allow you to be flexible between functional and oop style.
  • 0
    Yeah I actually really like Scala. I'm a Java developer, but I prefer Scala when working with Spark.
  • 0
    It's great and so powerful to use with Spark. It gives you type safety at the same time as being able to deal with unstructured data in a functional way.
  • 0
    @cmarshall10450 hey, if you dont mind me asking, is there a way to define infix functions in scala? Like `let (>>) a b = a + b` or something? Couldnt find it in the docs.
  • 1
    @ganjaman Scala methods can all be called from infix notation as long as they only take one parameter. If the methods are declared to be parenthesisless then they can be chained with infix notation and don't require parenthesis to use.
  • 1
    @ganjaman a good example of this is SparkTest where the test methods are called with infix notation as a style convention to make it more human readable.
  • 0
    @cmarshall10450 thats great, thanks. Infix is a feature im very used to and dont wanna pass up tbh.
  • 0
    @ganjaman all methods can be called with infix without having to explicitly specify that you want to do that. Just watch that if your parameter is a function, you need to wrap it all in curly braces.
Add Comment