News for hackers. Stuff that matters.
Re:Go Enums Still Suck by Debilski on Thursday March 28, 2024 @09:03AM (#39850773)
I’m wondering why we don’t use any type and definition-aware IDEs that could render the first line as a proper table (especially once there is a list of items of the same type involved). With headers and aligned fields. Similar to how Word would do it with inline tables.

Ideally of course with a switch to change to the second, more verbose definition.

Re:Go Enums Still Suck by CharlieDigital on Thursday March 28, 2024 @09:08AM (#39850856)
Rider (and probably all JetBrains IDEs?) have inlined parameter names and types as hints.

https://www.jetbrains.com/help/rider/Inline_Parameter_Name_H...

Re:Go Enums Still Suck by MSFT_Edging on Thursday March 28, 2024 @09:16AM (#39850951)
That would tie languages to language tools and IMO be a downgrade from having a slightly more verbose language that is independent of tooling.