- cross-posted to:
- programmerhumor@lemmy.ml
- cross-posted to:
- programmerhumor@lemmy.ml
Programmer: “Does that mean it’s free?”
Cashier: stabs you in the face
Undefined behavior can go bad quickly.
Could go the other way though. Ask them nicely if they’d be willing to free up their heap of inventory, and if they return you a cart overflow, you know you’ve stumbled upon the ultimate zero day coupon.
I give money to cashier, change comes out of coin dispenser. I say “Looks like I won again!”, cashier dies a little inside.
Every time.
I worked in groceries story when I was younger.
But funily enough, it’s probably one of the rare times I’d have answered “yes”!
We got a policy here where anything mislabelled under 10$ is free for the first item. Anything over 10$ gets a 10$ rebate.
My understanding is that it was put in place a while ago when stores stopped labelling individual items to keep them in check and ensure that consumers had a recourse in case of mistake.
Source: https://www.opc.gouv.qc.ca/en/consumer/topic/price-discount/store/tip-sheet/
NULL being “no money” by any definition, and the regular price for this probably being under 10$… well, it’s probably free!
deleted by creator
No, but these nulls might indicate references that previously pointed to memory that was freed.
Free olives, the cost is listed as 0.
can I get uhhhhh NullPointer Exception: Object reference not set to an instance of an object.
sorry we only have Exception in thread “main” java.lang.NullPointerException, is that okay?
How about
Class lol : Object { public static init void main (string args) { virtual void A_Start() { Java.Print(args) break } } }
In case it’s not clear, I know nothing about Java.
It is funny, it’s just that the amount of funny is null.
Mmh nice, nullives.
In a country where Null literally means zero? Awesome
Isn’t NULL a macro in C for 0? So doesn’t that mean these items are free?
When you buy these an exception is thrown.
*olives > /dev/null
Programming aside electric self edge labels are the future. Where I work we do paper labels for about 50 pretty small stores and use best part of 30,000 sheets of paper a week.
I imagine with inflation causing an increased frequency of relabeling and relabeling costs causing an increased rate of inflation, it’s only a matter of time before I become too lazy to finish this joke.
deleted by creator