-
Currently Environment.set_loader takes a function whose return value type F is I think it is simpler to F is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I have been thinking a few times to change this, but this is a stable API now and it's not worth breaking the API for. The main benefit is that you get an automatic error message for the common "not found" case and it makes it easier to compose loaders in theory. |
Beta Was this translation helpful? Give feedback.
I have been thinking a few times to change this, but this is a stable API now and it's not worth breaking the API for. The main benefit is that you get an automatic error message for the common "not found" case and it makes it easier to compose loaders in theory.