logoalt Hacker News

hinkleylast Sunday at 6:06 PM1 replyview on HN

They could still fix it with arrow functions, but it’s always gonna look weird.

Some other people have tried to explain how they prefer types before variable declarations, and they’ve done a decent job of it, but it’s the function return type being buried that bothers me the most. Since I read method signatures far more often than method bodies.

fn i32 add(…) is always going to scan better to me.


Replies

lenkitelast Sunday at 7:02 PM

OK, but with generics return type first tends to becomes a monster.

show 1 reply