From 8934d0638129d554afcb27d0cb120abf9a60a8be Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 10 Feb 2022 01:21:07 +0100 Subject: [PATCH] Add a todo for adding builders to parameters --- src/param.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/param.rs b/src/param.rs index a64a2d51..6b8dec78 100644 --- a/src/param.rs +++ b/src/param.rs @@ -29,6 +29,10 @@ pub mod smoothing; pub type FloatParam = PlainParam; pub type IntParam = PlainParam; +// TODO: Instead of having just structs with public fields and a Default instance, consider also +// adding `new` functions that take just the essentials (name, default value, range) and then +// have builders for the other fields. That might make the params object a bit less verbose. + /// Describes a single parameter of any type. pub trait Param: Display { /// The plain parameter type.