This is valid Smalltalk code, but not the way you'd program a door in Smalltalk.
You'd probably prototype this in a Workspace, then create the method suggested above, which would force you to specify keys for the arguments, thus forcing you to make your code cleaner and more readable.