News for hackers. Stuff that matters.
Re:Writing Python inside Rust by rav on Saturday April 18, 2020 @10:35AM (#22908048)
The blog post shows two Python snippets starting with "if True:" and different indentation and says the snippets "have a different meaning". However, in this case the difference between the snippets is mainly in their syntax and not in their meaning. The example would have been better if "if True:" was replaced by "if False:" or "if foo:".

        if True:
            x()
        y()


        if True:
            x()
            y()
Re:Writing Python inside Rust by m-ou-se on Saturday April 18, 2020 @10:41AM (#22908076)
Good point! Updated.