[GNC-dev] Sample Report with Examples
john
jralls at ceridwen.us
Fri Jan 13 23:47:29 EST 2023
> On Jan 13, 2023, at 6:46 PM, flywire <flywire0 at gmail.com> wrote:
>
> The point is not about the changes options make to reports, it's about how the report source code changes the report and report options. Why wouldn't unique string values help people unfamiliar with reports see the relationship more clearly?
While it's possible in Scheme to take that quoted option value and convert it to code I don't know of any report code in GnuCash that does so. That's a very good thing, we have enough Scheme-induced vulnerabilities without that.
With that in mind, no, the quoted-string default values do not in any way have anything to do with illustrating how the report source code changes the report and report options. Nor, for that matter, does hello-world.scm illustrate anything of the sort. hello-world.scm simply provides examples of the different types of options and very simply displays the values in the report. There's not a single line of code that changes the behavior of the report based on an option value--unlike many of the real options in most of the real reports.
Regards,
John Ralls
More information about the gnucash-devel
mailing list