News for hackers. Stuff that matters.
Re:A proposal for named arguments for C++ by Marat_Dukhan on Thursday October 16, 2014 @12:11AM (#8463318)
I think C++ should use notation similar to designated initializers (that C++ adapted from C99) for names arguments, i.e. rectangle->set(.x = 10, .y = 20, .width = 20, .height = 20)

Otherwise, it would be very confusing that two different syntax are used for similar purpose.

There are no comments on this comment yet.