Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm sure I'm not the only one who doesn't like how these things are bolted on and shoehorned into the existing constructs, resulting in some ugly-ass syntax. Consider:

  auto triple = std::make_tuple(5, 6, 7);
  std::cout << std::get<0>(triple);
Ugh. And don't even get me started on "myList.push_back(5)" . "push" usually means "add to the front"; why not use "append" ?


Sigh - I know why you got downvoted but I came to post the same thing. I don't program in C++ but specifically the

std::get<0>(triple)

It really doesn't look great. It looks like the template syntax using the <>. I'm sure I would get used to it if I were using it every day but from an aesthetic sense it doesn't win me over.


It is the template syntax.


In Perl, "push" means "add to the back."




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

Search: