Monday, February 18, 2008

Self Printing JavaScript Literals

We Eiffel programmers often take a lot for granted, things that other languages just struggle with:

Are you ever sick of seeing Object get printed out when you try to output a variable to your console.

We Eiffel programmers just say:
  object.out
It's that easy.

1 comment:

  1. That's surprisingly true of a lot of Eiffel features. Just consider agents, multiple inheritance, feature adaptation and this is without even mentioning design by contract... I don't know about others but, for me, it makes coming back to more commonly used languages like Java, C# or C++ incredibly frustrating.

    I think this gives all the meaning to the saying that "Eiffel innovates on many predecessors and even successors"...

    ReplyDelete