News for hackers. Stuff that matters.
Re:Natural occurring molecule rivals Ozempic in weight loss,... by fire_lake on Saturday March 08, 2025 @02:29AM (#43298283)
Annoyingly it pushes the type definitions away from the function body when you have a particularly long doc. It’s a cute trick but docs above would have been better.
Re:Natural occurring molecule rivals Ozempic in weight loss,... by TheRealPomax on Sunday March 09, 2025 @06:10PM (#43314424)
You know what's cool: IDEs. They can do block folding. The really good ones just auto-fold function docs because you don't need to see those until you do.

It's not just a good trick: it's the right way to do it, and tooling can be (trivially) made to show you only what you need to see until you need to see more.

Re:Natural occurring molecule rivals Ozempic in weight loss,... by fire_lake on Tuesday March 11, 2025 @06:23PM (#43337753)
If we’re assuming an IDE that can arbitrarily change text layout and rendering I don’t see why it matters where the comment goes