2 ms·
If you use VS or Monodevelop, there's are options you can enable which show indentation margins, which is even better than braces. Seems like a non-issue.
by sparkie 8y ago
If you use VS or Monodevelop, there's are options you can enable which show indentation margins, which is even better than braces. Seems like a non-issue.
- Koshkin 8y agoBasically, you are discussing an attempt to move away from the purely textual, linear representation of program code (at least, in the way the programmer sees it). Yes, sophisticated tooling becomes very important then. But it is not always available.
- sparkie 8y agoI wouldn't say it's really sophisticated tooling. Many basic editors support visual whitespace in one form or another. Some insert a semi-opaque character in place of tabs/spaces, and others show rulers. F# is whitespace sensitive, so you need to stick to correct tab sizes anyway, and it becomes quite readable. For types, you can also add `class`, `interface`, `struct` at the start and `end` on the correct indentation after its definition to show a clear boundary. type X() = class member this.X = ... end
- phillipcarter 8y agoPretty much any modern C# editor tooling will do this as well. People want tools to show scope even if they use a brace-y language.