I am not sure if this is a trend or not or why it is happening, but I do think I prefer the return type on the right.
When I write code in Scala, the method definitions look like:
def add(a: Int, b: Int): Int = a + b
So when you read from left to right you get the intuition that I am taking these parameters and turning them into the return type.
That being said I don't think the placement matters too much to me as long as I am not switching between the two styles too frequently.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I am not sure if this is a trend or not or why it is happening, but I do think I prefer the return type on the right.
When I write code in Scala, the method definitions look like:
So when you read from left to right you get the intuition that I am taking these parameters and turning them into the return type.
That being said I don't think the placement matters too much to me as long as I am not switching between the two styles too frequently.