NilsNiggemann / PMFRG.jl

MIT License
1 stars 1 forks source link

Params should throw errors when a unknown kwarg is specified #1

Open NilsNiggemann opened 10 months ago

NilsNiggemann commented 10 months ago

I.e. it would be better if the following throws an error: Params(getPolymer(2),someRandomKwarg=1). Currently, it ignores the faulty kwarg. This is because the kwargs are forwarded to both NumericalParams and OptionParams for convenience, which both ignore unknown kwargs. The solution should ideally not break this behaviour

mmesiti commented 9 months ago

Humbly suggesting #16 as an idea for a fix