Open norpadon opened 1 month ago
Hi,
This is indeed missing. For the record, I think this is a duplicate of https://github.com/tweag/nickel/issues/747, which already has some proposals. But we can maybe keep this issue open as well, because the original one isn't as searchable.
Is your feature request related to a problem? Please describe. Here is an example config:
If I try to compile it, I get an Error:
As I understand, the only way to fix it is to rename the outer
learning_rate
variable, which is inconvinient.Describe the solution you'd like I see two possible solutions: 1) Introduce some king of special
outer
record which always contains bindings in the outer scope, so that I can write{learning_rate = outer.learning_rate}
2) Disabling recursion for quoted field names, e.g. {"learning_rate" = learning_rate}