intertwingly

It’s just data

Type Safety in a Loosely Coupled World


Chris Sells: I have always turned up my nose at run-time type checking until I realized (and this is the insight I got from Tim's talk) that *all* marshaling-based type checking is done at run-time.  Excellent!

Now for fun: what is '1' + '2'?  The answer may surprise you.  C# and Java agree (insert obvious joke here), but get a different answer than C, Perl, or Python do (which get three different answers).  Here's some test programs.

C#
public class test {
  public static void Main(string[] args) {
    System.Console.WriteLine('1' + '2');
  }
}

Java
public class test {
  public static void main(String[] args) {
    System.out.println('1' + '2');
  }
}

More on this subject can be found in Dealing with Diversity