News for hackers. Stuff that matters.
Re:The TypeScript compiler is now implemented internally wit... by sublinear on Wednesday November 02, 2022 @10:03PM (#33445913)
> If you had used tabs, changing the tab size would make it align all wrong.

This is clearly false. You said this after giving a perfect example of how it's done with tabs.

Re:The TypeScript compiler is now implemented internally wit... by Beltalowda on Wednesday November 02, 2022 @10:18PM (#33446071)
So you are saying that using a tabstop of eight to align this:

  -------->coolFun(arg1,
  -------->------->arg2)
Would still look nicely aligned with a tabstop of 4? and 2? Clearly that will not look right.
Re:The TypeScript compiler is now implemented internally wit... by sublinear on Wednesday November 02, 2022 @10:38PM (#33446228)
You're misquoting yourself.
Re:The TypeScript compiler is now implemented internally wit... by Beltalowda on Wednesday November 02, 2022 @11:37PM (#33446688)
I don't know what your point is then, but this is turning in to a very trite conversation.
Re:The TypeScript compiler is now implemented internally wit... by adolph on Thursday November 03, 2022 @04:14AM (#33448300)
To understand tabstops properly, you need to throw away the "They always expand to N spaces." idea. If you have access to a mechanical typewriter with tabstops, then go and look at how it works (with tabs being set by protruding pins on the carriage). Tabstops in terminals in the Unix and Linux worlds work this way.

https://superuser.com/questions/710019/why-there-are-11-tabs...

Re:The TypeScript compiler is now implemented internally wit... by Beltalowda on Thursday November 03, 2022 @07:53AM (#33449672)
If you use it as indention then "tab expands to n spaces" is actually accurate though.
Re:The TypeScript compiler is now implemented internally wit... by ghusbands on Thursday November 03, 2022 @04:00PM (#33456657)
> > If you had used tabs, changing the tab size would make it align all wrong.

> This is clearly false. You said this after giving a perfect example of how it's done with tabs.

I believe the post you're replying to meant "used more tabs". That is, if you used any tabs beyond the code indentation, they would get altered when you change the indentation size and ruin the alignment.

Re:The TypeScript compiler is now implemented internally wit... by sublinear on Friday November 04, 2022 @12:38AM (#33462259)
This was indeed the misunderstanding.

When I made my original comment I thought what I was replying to was an example of "tabs to indent and spaces to align" immediately followed by a statement that the only way to use tabs is to both indent and align.