Hacker News new | past | comments | ask | show | jobs | submit login

I much prefer your second example. In fact, surely tuples would help in this situation?

eg. in C++: tuple<int,int> x = GetCoordinates(); or auto x = GetCoordinates()

Much easier to see the output. I maintain enough old old C++ code and don't like seeing GetCoordinates(int x, int y) or x in COM-land any more.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact