in reply to Re^2: Some Insights from a Traveler Between Languages
in thread Some Insights from a Traveler Between Languages

"Counter-intuitive" is a relative term. I've never had a problem with length because I'm not the type to guess at what things do, and if I do guess and get it wrong, I just read the docs. I've never wondered about the "length" of an array because "length" doesn't mean "count" to me. I don't say "what's the length of that bunch of bananas?", just like I don't say "what's the count of this hiking trail?".

You may think some things are odd, but that doesn't objectively make them odd. Instead of intuiting things, you can usually save the hassle of being wrong by reading the docs.

--
brian d foy <brian@stonehenge.com>
  • Comment on Re^3: Some Insights from a Traveler Between Languages