Rather than returning a tuple, it would be nice if quadgk and friends returned a named tuple (; integral = …, error = …).
This would make the output easier to read, you could do e.g. quadgk(...).integral instead of quadgk(...)[1], and it should be mostly backwards compatible because named tuples can also be used just like tuples.
Rather than returning a tuple, it would be nice if
quadgkand friends returned a named tuple(; integral = …, error = …).This would make the output easier to read, you could do e.g.
quadgk(...).integralinstead ofquadgk(...)[1], and it should be mostly backwards compatible because named tuples can also be used just like tuples.