You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
The current approach for disabling the flag (having to invoke some code) appears to be less than ideal, given that that solution cannot be self-contained.
...This doesn't work because the require is placed before the .setFlagsFromString call.
So one, as a library author, cannot reasonably tell consumers "please place this snippet before invocation". That's quite clearly repetitive and error-prone: for example at work we have a number of Lumo scripts, and prepending the snippet to each of them would be undesirable.
A cleaner API would be to have a command line flag and/or a global dotfile, don't you agree?
Currently Lumo sets strict mode by default.
A number of people have run into this problem importing some libraries, so we could rethink the default (easy onboarding vs. slight perf gain).
As suggested by @SevereOverfl0w on Slack, we may be able to override the error message to point to the documentation on how to disable strict mode.
The text was updated successfully, but these errors were encountered: