2 ms·
Why oh why do we need some parameters be positional and others be named. At the very least, it should just be one or the other style. Not some mix and match.
by general_failure 12y ago
Why oh why do we need some parameters be positional and others be named. At the very least, it should just be one or the other style. Not some mix and match.
- wtallis 12y agoI can easily see a use for having some mandatory parameters followed by a few optional arguments. Requiring the mandatory parameters to be named adds verbosity to the code for the sake of slightly simplifying the language, which doesn't strike me as being a very C++ sort of philosophy.