Camera.set() and Camera.new() -
-
The API doc for
Camera.set()isn't right.Camera.set(), as the name implies, sets the camera. It might have been better to call itCamera.set!(). It does not return a reference to a new Camera object.Camera.new()returns a reference to a new Camera object and should not be deprecated.c = cam.set( ... ) c == cam # trueThe code example
camera = camera.set ...is bad practice. Thecamera =part should be discarded.Anyone with a copy of my Chapter 16 and its associated code should get a new copy.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement