Skip to main content
added 13 characters in body
Source Link
Peter Bloomfield
  • 11k
  • 9
  • 48
  • 87

C++ doesn't support named parameters, and I doubt it ever will.

It has strict calling conventions which mean you couldn't re-order the parameters at call-time without adding an unnecessary layer of data duplication/indirection (which would hurt performance). It would also need a significant change to compiler architecture, as variable/parameter names are usually stripped out long before the linker is invoked.

If you want to achieve a similar effect though, you could use comment blocks instead, e.g.:

Motors motors(/*p1*/ 123, /*p2*/ 456);

C++ doesn't support named parameters, and I doubt it ever will.

It has strict calling conventions which mean you couldn't re-order the parameters without adding an unnecessary layer of data duplication/indirection (which would hurt performance). It would also need a significant change to compiler architecture, as variable/parameter names are usually stripped out long before the linker is invoked.

If you want to achieve a similar effect though, you could use comment blocks instead, e.g.:

Motors motors(/*p1*/ 123, /*p2*/ 456);

C++ doesn't support named parameters, and I doubt it ever will.

It has strict calling conventions which mean you couldn't re-order the parameters at call-time without adding an unnecessary layer of data duplication/indirection (which would hurt performance). It would also need a significant change to compiler architecture, as variable/parameter names are usually stripped out long before the linker is invoked.

If you want to achieve a similar effect though, you could use comment blocks instead, e.g.:

Motors motors(/*p1*/ 123, /*p2*/ 456);
added 309 characters in body
Source Link
Peter Bloomfield
  • 11k
  • 9
  • 48
  • 87

C++ doesn't support named parameters, and I doubt it ever will as it.

It has strict calling conventions which mean you couldn't re-order the parameters without adding an unnecessary layer of data duplication/indirection (which would hurt performance). It would also need a significant change to compiler architecture, as variable/parameter names are usually stripped out long before the linker is invoked.

If you want to achieve a similar effect though, you could use comment blocks instead, e.g.:

Motors motors(/*p1*/ 123, /*p2*/ 456);

C++ doesn't support named parameters, and I doubt it ever will as it has strict calling conventions.

If you want to achieve a similar effect, you could use comment blocks instead, e.g.:

Motors motors(/*p1*/ 123, /*p2*/ 456);

C++ doesn't support named parameters, and I doubt it ever will.

It has strict calling conventions which mean you couldn't re-order the parameters without adding an unnecessary layer of data duplication/indirection (which would hurt performance). It would also need a significant change to compiler architecture, as variable/parameter names are usually stripped out long before the linker is invoked.

If you want to achieve a similar effect though, you could use comment blocks instead, e.g.:

Motors motors(/*p1*/ 123, /*p2*/ 456);
Source Link
Peter Bloomfield
  • 11k
  • 9
  • 48
  • 87

C++ doesn't support named parameters, and I doubt it ever will as it has strict calling conventions.

If you want to achieve a similar effect, you could use comment blocks instead, e.g.:

Motors motors(/*p1*/ 123, /*p2*/ 456);