cborgolte
http://solar-radar.com
about 6 years develping scientific software with a combination of fortran, c and c++
3 years developing ERP related web-based software.
founder of solar-radar.com
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
about 6 years develping scientific software with a combination of fortran, c and c++
3 years developing ERP related web-based software.
founder of solar-radar.com
Day 1 Keynote - Bjarne Stroustrup: C++11 Style
Feb 13, 2012 at 9:45 PMAfter a night thinking about this issue I have to correct my first comment.
Within the meaning of this excellent talk, the examples using Point are the better ones. I was just misled by the different notations for good examples written with parameters and bad examples written without.
The Point example is better, because it implicates the possibility to use units like it is done by the Speed example.
Day 1 Keynote - Bjarne Stroustrup: C++11 Style
Feb 13, 2012 at 4:29 PM@bog: Thanks for this detailed answer to my comment.
I dont want to start nit-picking here. For sure 99.9999% of all programmers (me included) would use both corner points to define a rectangle. But you could also define it by its center point and any other point.
Or using the second constructor with Point top_left and Box_hw. Even if i would be 99% sure that i know what's meant, if i would read
I would take a look at the implementation or read the docs to be sure.So for me, using declarative parameter names highly improves the readability of interfaces.
Day 1 Keynote - Bjarne Stroustrup: C++11 Style
Feb 13, 2012 at 1:14 AMI dont see any difference between the example
and the 'better' example
Both are understandable only if you use declarative parameter names as it is done with
which is equally understandable for me if you write