Wednesday, August 21, 2013

Fix the length of an array in C#.

This is good:

string[] tastes = new string[6];

 
 

This will not compile:

string[6] tastes;

 
 

By the way, yes, there are now six tastes as...

  1. sweet
  2. sour
  3. salty
  4. bitter

 
 

...has been expanded to:

  1. sweet
  2. sour
  3. salty
  4. bitter
  5. pungent
  6. astringent

 
 

...or maybe this has always been so in Indian culture and now it is creeping into the West and screwing up what I learned in public school. This makes me feel old. This tastes bitter, if you will, not unlike Lake Champlain becoming a sixth great lake. At least the seven fruits in Ms. Pac-Man will never change. I digress.

No comments:

Post a Comment