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

> code with very horizontal coding styles

I'm not sure what you mean. Could you give an example?



Literally just code with long lines. You run into this particularly with monadic stuff like LINQ queries.


I grepped up some old LINQ code I wrote (sanitized as it's not open source):

  var list = obj.FindDataNear(a, b...).Select(i => obj.GetPosition(i))
      .Where(...long lambda...)
      .MoreLINQ()
      .ToList();
So with the style I used, the semicolon is superfluous due to indentation. Are there styles where the semicolon is useful?


> So with the style I used, the semicolon is superfluous due to indentation.

Eh, indentation is also conflated with block delimitation. The semicolon is still useful to more strongly indicate statement delimitation at a glance.

Yes, it's redundant, but so are many signifiers around us. The pity is that readability aspects aren't semantically relevant but are stored as if they are.




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

Search: