Don't rely on regex for module/program detection #3

Closed
opened 2025-03-26 18:55:06 +00:00 by john · 0 comments
Owner

Currently, loading a script is a complicated regex operation, and it is unreliable. Just run the code and see if it returns a value or not. if it does, it is a module; if it doesn't, it can only be used as a program.

Currently, loading a script is a complicated regex operation, and it is unreliable. Just run the code and see if it returns a value or not. if it does, it is a module; if it doesn't, it can only be used as a program.
john closed this issue 2025-05-30 20:31:03 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: john/cell#3
No description provided.