I knew that Haskell has an unconventional meaning for return, but today I learnt that return in Scala means something else too!
https://tpolecat.github.io/2014/05/09/return.html
It's a non-local return, so it returns from the *caller*! Wild.
Seems handy for Ruby/Smalltalk style blocks though.
Related Posts
Playing with optional type signatures in Python, I realise that the return type is the most important to me.
I'd much rather have a function with only a return type instead of a function with only parameter types. It's often quick to add too.
I've released difftastic 0.62! In this release:
* Updated parsers for Bash, C, C++, C#, CSS, Go, Haskell, HTML, Java, JavaScript, JSON, Julia, Lua, Objective-C, OCaml, PHP, Python, Ruby, Scala, TOML, TypeScript and XML.
* Obligatory crash fixes.
https://github.com/Wilfred/difftastic/releases/tag/0.62.0
Today I learnt that Lua projects often use *3* spaces for indentation! https://github.com/luarocks/lua-style-guide/blob/master/README.md#indentation-and-formatting
I initially thought something was very wrong with editor config.