Discussions

SmileBASIC Community

Chickens32Chickens32

12/28/2016 5:00 PM ·Spoilers

Open Closed

Option Strict

What are the PROs and CONs of using the OPTION STRICT command and should I go through my game and remake it to use OPTION STRICT?

Advertisement

Comment

This post has no comments.

  • No cons other than having to type more. You dont have to but it can help prevent using the wrong variable.

    Yeahs2
    Played
  • Cons: Initializing a variable inside a branch statement (IF...THEN) gives strange behavior to future variable initialization, more typing/planning Pros: Allows cleaner code, catch bugs immediately upon pressing start, you organize your variables better, it replicates a serious programming language, it gets you into a good habit, in the long run it allows you to make huge projects much easier.

    Yeahs2
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-EJ9-9E2R-RE8-FBVB

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: