Answer the question
In order to leave comments, you need to log in
In Rust, the arrow -> in the function declaration foo()->i32{ for beauty?
Is this arrow purely decorative or does it help the parser somehow? Is it possible to have a valid construction without a view arrow
that would mean something other than a function declaration? It seems that Rust has a very concise syntax, is it possible that function was reduced to two letters, and the arrow was left for beauty, so that it looks like Haskell?)) fn foo(arg) type{
Answer the question
In order to leave comments, you need to log in
Is it purely decorative or does it help the parser somehow?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question