Re:Why Discord is switching from Go to Rust
by Uristqwerty on Tuesday February 04, 2020 @02:56PM
(#22240219)
In an ideal world, I'd think you would put a "tab stop" character before arg1, then a single tab on the following line, with the bonus benefit that the formatting would survive automatic name changes and not create an indent-change-only line in the diff. Trouble being that all IDEs would have to understand that character, and compilers would have to ignore it (hey, ASCII has form feed and vertical tab that could be repurposed...).
[ Parent
| on HN ]
Re:Why Discord is switching from Go to Rust
by vthriller on Tuesday February 04, 2020 @08:46PM
(#22243244)
Or you could use regular tab stop characters to align parts of adjacent lines. That's the idea behind elastic tabstops: http://nickgravgaard.com/elastic-tabstops/
Not all editors, however, support this style of alignment, even if they support plugins (looks at vim and its forks).