News for hackers. Stuff that matters.
Re:Write More Classes by CodeMage on Tuesday February 12, 2013 @03:19PM (#5209230)
Ugh. That's like saying that high-level programming languages "don't count" because you can do that stuff in assembler.
Re:Write More Classes by loup-vaillant on Tuesday February 12, 2013 @05:27PM (#5210028)
I'm not arguing Turing completeness here. I'm arguing trivial one to one mapping. Syntax sugar. Compare:

  struct foo {
    int   bar;
    float baz;
  };
  int   get_bar(foo);
  float get_baz(foo);
Which would emulate this:

  class foo {
  public:
    int   get_bar();
    float get_baz();
  private:
    int   bar;
    float baz;
  };
If you're interested, I wrote more about that here: http://loup-vaillant.fr/articles/classes-as-syntactic-sugar