3 ms·
I'm not arguing Turing completeness here. I'm arguing trivial one to one mapping. Syntax sugar. Compare: struct foo { int bar; float baz; };
by loup-vaillant 14y ago
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 http://loup-vaillant.fr/articles/classes-as-syntactic-sugar