Skip to content

Remove free functions? #5

@dimsumthinking

Description

@dimsumthinking

Currently, I have an adapter file so that someone can just type:

forward()
right()
forward(60)

The implementation of forward() in turn calls turtle.forward()

So what I'm wondering is:

(1) Is it pedagogically harder to replace the above with either

turtle.forward()
turtle.right()

or

turtle.forward()
.right()

(2) Given that we make that change, is it a burden for them to first create the turtle

turtle = Turtle()

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions