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

I think this is what parent meant:

  1 int f() {
  2 >---int someVariableName = myFunctionCall(expr(5),
  3 >---                                      somethingElse(9),
  4 >---                                      a_long * expression + involving(multiple.subExprs));
  5 >---int d = somethingElse;
  6 }
Tabs only for indentation (lines 2 to 5), spaces for alignment (lines 3 and 4). This is easy to achieve if you use Vim with Smart Tabs for instance (https://vim.sourceforge.io/scripts/script.php?script_id=231).



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

Search: