Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activate strict mode in Fennel when strict: true header is found. #1653

Merged
merged 1 commit into from
Nov 1, 2021

Commits on Oct 30, 2021

  1. Activate strict mode in Fennel when strict: true header is found.

    Global mode makes it so that it is a compile error to refer to a
    global which doesn't exist yet. Using (global foo {}) will declare foo
    as a global which can be used after the declaration, or you can always
    bypass the checks using _G.foo.
    
    This will catch a lot of errors earlier on during the compilation
    process instead of at runtime. This should have been on by default
    from the start. But better late than never. =)
    
    We change the demo Fennel cart to add the strict header by default for
    new games, but it's easy to delete for users who want the more
    Lua-like global behavior.
    technomancy committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    82b0536 View commit details
    Browse the repository at this point in the history