3 ms·
With type ascription being optional in some places, I have to wonder if using the colon for both type ascription and fn return type would introduce any parsing/
by swsieber 6y ago
With type ascription being optional in some places, I have to wonder if using the colon for both type ascription and fn return type would introduce any parsing/grammar ambiguities.
I personally like the arrow being used for return types as it highlights pretty well what returns stuff. I don't need to track fn definitions or anything when scanning a file - I just need to look for the arrows.