I wrote in the “Functions are Values” lesson that most developers prefer to use the
def syntax to define methods — as opposed to writing functions using
val — because they find the method syntax easier to read than the function syntax. When you write methods, you let the compiler convert them into functions with its built-in “Eta Expansion” capability. There’s nothing wrong with this. Speaking as someone who used Java for 15+ years, the
def syntax was easier for me to read at first, and I still use it a lot.