8
ganjaman
12d

Imma just learn scala this weekend

Comments
  • 3
    A functional holiday indeed
  • 1
    Any project in mind already, or is that just to be one of the cool kids?
  • 0
    #metoo
  • 1
    @Jilano something with graphics would be neat, ocaml lacks a decent desktop gui framework
  • 1
    I stopped in the chapter about XML being a part of the language.
  • 0
    Have fun with actors my boy
  • 1
    @ganjaman how's it going so far?
  • 1
    @sagar13 easier than expected, but the syntax is really weird after ocaml
  • 1
    @ganjaman I know, right! This is my first time learning a functional programing language with closures. I learned that in scala, while calling a function on an object, you can omit the dot preceding the function and the parantheses if the function has only one parameter!! And apparently this is a very common patter in closures..

    eg: util.echo("Hello") can be invoked as util echo "Hello"
  • 1
    @sagar13 thats because ("asd") is basically let f = () => "asd", so it just evaluates to a string. I havent found a way to pipe yet, im really used to writing "asd" |> print.
Your Job Suck?
Get a Better Job
Add Comment