return with or without parentheses

 

According to https://www.mql5.com/en/docs/basis/operators/return, 

we should enclose the value or expression to be returned in parentheses, for example:


int CalcSum(int x, int y)
  {
   return(x+y);
  }


But the following does also work:


int CalcSum(int x, int y)
  {
   return x+y;
  }


Is there a subtle difference between return statements with and without parentheses?

Documentation on MQL5: Return Operator / Language Basics
Documentation on MQL5: Return Operator / Language Basics
  • www.mql5.com
The return operator terminates the current function execution and returns control to the calling program. The expression calculation result is...
 

It's the same.

Though personally I find more readable to use ().