There are no named parameters in MQL5
Don Baechtel:
In MQL5, can you pass function parameters in any order as named parameters?
Is there a way in MQL5 to used named parameters for improved readability?
Should there be named parameters in MQL5?
No. No (not natively). No (as it's descended from C++).
You can implement a workround with a class for named parameters, for example using the "builder" design pattern, then pass such single object into the function.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
In MQL5, can you pass function parameters in any order as named parameters?
Google Search says that you can, but it doesn't compile.
Google Search sample code. This doesn't compile.
Is there a way in MQL5 to used named parameters for improved readability?
Should there be named parameters in MQL5?