Quick survey: func(..) {..} versus (..) {..}

Ivan Čukić ivan.cukic at kde.org
Sat Jul 26 14:06:52 UTC 2014


>     fun get_cp_amtMaxfee(double d){ i=d; return i; } short;

Return types are important for the function users. It would be quite tedious 
for one to go to the end of the implementation of a function just in order to 
see what is its return type. Especially since it is optional, in which case 
you got to the closing bracket and got nothing to show for it.

You might argue that a potential IDE would solve this by showing the return 
type to the user. But having an IDE is not an excuse for something, IDEs are 
just there to make warts in languages less prominent.

Cheerio,
Ivan


More information about the Funq-devel mailing list