ByteCode.News
Submit RSS Atom Sign in

Back to the channels

#java

  1. Maxdamantus 08:26:48 < jreicher> Oh, come on. Nobody says "empty distance", do they?
  2. Maxdamantus A distance is the same sort of thing as a size. size, length, distance are all measurements.
  3. Maxdamantus distance is slightly different in that it has a unit.
  4. jreicher Maxdamantus: exactly. I'm fairly sure nobody says "empty" for any of them.
  5. jreicher I think that's actually wrong.
  6. fizzie String implements CharSequence, so while it's not a _collection_, it's clearly a _sequence_, and those can definitely be empty.
  7. jreicher Yes, that's the interpretation I was referring to. But you still need to "do" that interpretation, and confused people wouldn't, or wouldn't know they are.
  8. Maxdamantus the size isn't empty. the string is.
  9. jreicher No, it's not
  10. jreicher It's just a string
  11. dreamreal fizzie++
  12. nevet fizzie now has karma of 2.
  13. fizzie Anyway, I wouldn't think you can dislodge "empty string" from the standard terminology at this point, it's very widespread.
  14. jreicher "" and "blah" are both strings. They have different lengths, and are composed of different characters, but otherwise have the same "status"
  15. Maxdamantus an empty string, because its size is zero.
  16. dreamreal and "blah" contains ""
  17. jreicher Maxdamantus: so the number 0 is an "empty number"?
  18. Maxdamantus jreicher: no.
  19. jreicher Exactly. The concept of "empty" doesn't apply.
  20. Maxdamantus jreicher: it's a number that is used to denote emptiness.
  21. Maxdamantus it itself is not empty, that's what I'm saying.\
  22. jreicher Oh hell no. It's just a number. It doesn't denote anything.
  23. fizzie I feel like by that argument you couldn't say "empty set" either. Set.of() and Set.of('b', 'l', 'a', 'h') are both sets. They have different elements, but otherwise have the same "status". Why can you call the former an empty set then, but you can't call "" an empty string?
  24. jreicher fizzie: a set is most definitely a collection. Totally different kind of object
  25. dreamreal pretty soon you nerds are going to start talking ontologies and meanings and I'mm have to shut you down before a D&D game breaks out
  26. Maxdamantus that's why you don't say that a size or a distance is empty.
  27. jreicher Exactly
  28. jreicher And it similarly is odd to say that a string is empty
  29. dreamreal which one of you is the halfling/toad hybrid paladin?
  30. jreicher I don't care, as long as I can have the flamethrower.
  31. dreamreal NO FLAMETHROWERS IN THIS GAME. It's a house rule. However, there are steampunk molotov cocktails.
  32. jreicher Fart gun?
  33. dreamreal I mean, how can there not be one