News for hackers. Stuff that matters.
Re:Ineffective coding habits many F# programmers don’t have by stephengillie on Tuesday September 26, 2017 @05:05PM (#15342506)
Readability is why I use "closing flags" so I don't get lost in a sea of closing curly brackets. Example:

  if ($TreeHasLeaves) {
  	Write-Host -f green "The variable  TreeHasLeaves is $($TreeHasLeaves)"
  }; #end if TreeHasLeaves
My "GilLang" auto-adds these closing flag comments after each closing bracket - currently it only supports Powershell, but the goal is to streamline basic coding (if/then, for/foreach, do/while, try/catch) in many languages. To create the above function statement, curly brackets included, just type use "New-FunctionStatement if TreeHasLeaves -Powershell".
Re:Ineffective coding habits many F# programmers don’t have by duedl0r on Tuesday September 26, 2017 @07:25PM (#15343538)
I think that's readable just for you, if you're used to it. For me it's just noise. Why would you need it anyway? My take is, to minimize nesting and scope, so I can see right away where the scope starts and ends.
Re:Ineffective coding habits many F# programmers don’t have by na85 on Tuesday September 26, 2017 @05:10PM (#15342552)
rainbow-delimiters-mode is great for this, if you're an emacs user.
Re:Ineffective coding habits many F# programmers don’t have by stephengillie on Tuesday September 26, 2017 @05:17PM (#15342596)
Is this a good example?[0]

That would be helpful, and I hope Notepad++ gains the feature. Notepad++ does have a bracket helper that highlights the other bracket, but flagging the closing bracket helps when there are several brackets.

[0] https://raw.githubusercontent.com/thblt/eziam-theme-emacs/ma...

Re:Ineffective coding habits many F# programmers don’t have by leephillips on Tuesday September 26, 2017 @05:17PM (#15342597)
Vim has that, too (as a plugin). Great for lisps.
Re:Ineffective coding habits many F# programmers don’t have by vorotato on Wednesday September 27, 2017 @03:21PM (#15351347)
Vscode has both rainbow delimeters and rainbow tabs plugins, highly recommend both.