JavaLaurence Geschrieben March 25, 2013 at 19:00 Geschrieben March 25, 2013 at 19:00 Currently, the TF implementation lets us instantiate a Bricklet object for a Bricklet which physically doesn't exist, either by passing a wrong UID, or by passing the "right" UID, but not having the Bricklet physically connected. In either case, would it not be preferable to fail-early by having the constructor blow up with throw new IllegalArgumentException("Bricklet not present: " + uid); ? This suggestion does not require an API change, only an implementation change (and updated docs). Zitieren
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.