I updated that page to specify no-indent code. If this discussion thread continues we can modify what that page says accordingly to list any exceptions.
On Fri, Nov 7, 2025 at 8:47 AM Steve Lawrence <[email protected]> wrote: > I don't think we made a formal decision, but I think we should. I much > prefer > the -no-indent syntax--I'm not a fan of significant white space. > > We also have this page that talks about code style: > > https://cwiki.apache.org/confluence/display/DAFFODIL/Code+Style+Guidelines > > That might be an appropriate place for that. > > On 2025-11-07 08:36 AM, Mike Beckerle wrote: > > I don't recall a formal decision about Scala 3's Python-style > > indent-sensitive syntax stuff. > > > > Did we formally agree that we will reject any Scala 3 code that depends > on > > indents in the primary Daffodil code base? > > > > I know we have "-no-indent" in our build.sbt which enforces this, but I > > don't see the keyword "no-indent" in the dev list email history. > > > > I also thought we had a coding-style guide on our Wiki, but could find > only > > this > > > > > > > https://cwiki.apache.org/confluence/display/DAFFODIL/Coding+for+Performance > > > > We should consider writing a scala coding style guide that subsumes that > > page, and that justifies our scalafmt and other guidance that we > otherwise > > have to enforce in ad-hoc review comments. > > > > FYI: Some of the arguments in favor of no-indent are well made in a > recent > > blog > > > > https://alexn.org/blog/2025/10/26/scala-3-no-indent/ > > > > Though there are numerous more arguments why in large code bases, as > > opposed to smaller scripts/tools, this indent-oriented syntax is > > problematic. > > > >
