I certainly agree that "Flat is better than nested." However, I am working with an existing code base in Orca and modifications should conform to the existing style.
John On Fri, Aug 21, 2020 at 10:08:50AM -0400, S. Massy wrote: > On Fri, Aug 21, 2020 at 09:00:10AM -0500, John J. Boyer wrote: > > Consider the following deeply indented Python statement. > > wordType = adverb > > There are five tabs. I would like BRLTTY to replace them with simicolons > > ;;;;;wordType = adverb > > This feature would have to be optional and easy to turn on and off. People > > sometimes use spaces to indicate indentation or even both tabs and spaces. > > I would like spaces replaced with commas. The feature should work only at > > the beginnings of lines. I've soon code with soo many tabs that the Braille > > display is blank. > > That makes coding really frustrating. > This isn't exactly what you want, but my solution for this has been to > shrink tabs from eight to four spaces in vim; that helped loads. > > On a stylistic note, it might also be that the code needs refactoring to > be more pythonic, as "Flat is better than nested." is one of the > language's core philosophies. > > Regards, > S.M. > -- > Sebastien Massy > Montreal, Canada > Website: http://www.wolfdream.ca > Twitter: http://www.twitter.com/SMassy1 > LinkedIn: http://ca.linkedin.com/pub/sebastien-massy/47/5a5/81a > _______________________________________________ > This message was sent via the BRLTTY mailing list. > To post a message, send an e-mail to: [email protected] > For general information, go to: http://brltty.app/mailman/listinfo/brltty -- John J. Boyer Email: [email protected] website: http://www.abilitiessoft.org Status: Company dissolved but website and email addresses live. Location: Madison, Wisconsin, USA Mission: developing assistive technology software and providing STEM services that are available at no cost _______________________________________________ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: [email protected] For general information, go to: http://brltty.app/mailman/listinfo/brltty
