News for hackers. Stuff that matters.
Re:There's a coffeeshop called java.update() in GTA V by egwynn on Wednesday September 25, 2013 @09:13AM (#6444313)
Never mind that the function casts (coerces? constructs?) ints to bread and ints to bacon. Let alone how it's got a special "plus" operator that can work on bread/bacon and return a sandwich...
Re:There's a coffeeshop called java.update() in GTA V by cosmotron on Wednesday September 25, 2013 @09:48AM (#6444500)
If you look carefully at the screenshot, you'll see that bread and bacon are declared to be ints above the method. =]
Re:There's a coffeeshop called java.update() in GTA V by galaktor on Wednesday September 25, 2013 @10:10AM (#6444646)
Clearly bad practice to be using raw integers here. They should at least be using enums.

public enum Ingredients { BREAD, BACON }

public enum Delicatessen { BACON_SANDWICH }