76
etrock
6y

Best example 😄

Comments
  • 11
    But the 0 is a float cast to an int, because there obviously is some white paper left on the roll.
  • 0
    That is why I check !empty($toiletPaper) instead of isset($toiletPaper)
  • 0
    @hugh-mungus for people who aren't used to reference types: maybe
  • 1
    This is a shitty explanation
  • 0
    @hugh-mungus Literally yes in this situation.
  • 0
    Someone please show me null vs undefined
  • 0
    @avernus undefined is nothing at all
  • 1
    @Madm0x null is also nothing at all. But null is defined as nothing at all and undefined is not defined.
  • 0
    @Madm0x @avernus The problem is that in many cases you can't guarantee that undefined is nothing (it might actually be some random something if your environment is mean) while null is guaranteed to be nothing.
Add Comment