Replies: 2 comments
-
|
Not really — functions with special behavior are treated by name as keywords, not as function definitions. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I think this is now possible with #974 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Can
pcall(require, "mod")act like standalonerequirefor the success path?Right now (version
0.20.0) type narrowing it doesn't seem to work:As a workaround, this works, but it's not optimal:
Beta Was this translation helpful? Give feedback.
All reactions