View Single Post
  #2   Spotlight this post!  
Unread 31-03-2013, 20:24
armgeek's Avatar
armgeek armgeek is offline
Raspberry Pi Enthusiast
AKA: Tyler Pawlaczyk
FRC #0340 (Greater Rochester Robotics)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2011
Location: Rochester, NY
Posts: 10
armgeek is an unknown quantity at this point
Re: Anonymous functions

This is a "good" way to do it.

However, you could make it look a lot "neater" if you changed the "get" method's name to "pressed". That way the if statement would read more like English would.
__________________
I enjoy ARM processors.
Looking to earn rewards for working on Open-Source projects that help FIRST? You may be interested in the Summer of FIRST 2013 project. More info: 2013.summeroffirst.org
Also, visit my (sparse) blog: rainingbitsandbytes.blogspot.com
Reply With Quote