Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Code is also data in C++, because a source file is a vector of bytes, which is a type of data that C++ can manipulate.

I think when people say “code is data” what they really mean is something more specific, like the AST is easy to access and manipulate in the language.



sort by: page size:

C++ is?

C++ files are documents too.

Seems okay to me, it's just one more layer of abstraction higher up the chain.

Exactly.

C++ is no-code if you work in x86 assembler.


If the C++ compiler takes it, it is C++ code. The fact that it is almost valid C code does not change that.

The reactions a number of people have to C++ code that is also valid C code or close to being it are ridiculous. Some times, they even deny C++ code is C++ code. :/


C++ isn't C.

It is, but we are in C++

Yes. C++ is it’s entirety is (probably) not understood by anyone.

C++ code has a lot of copies actually.

This is why I love C++ and C even though you cant find the source you can read the headers.

Oh god. I've never looked at programming language like that before. Now C++ starts to make sense. xD

Young fool, only now, at the end, do you understand... code is data.

CEPL demos: https://www.youtube.com/watch?v=2Z4GfOUWEuA&list=PL2VAYZE_4w...

I get it, there are many good reasons to stick to C++ if you want to ship a game today.


That's c++

It's definitely a markup language (similar to XML), not a programming language. Much more similar to Markdown than it is to C++.

this is c++

Sure, there's C++ here and there underneath, so what?

Writing data structures is trivial in C/C++.

Doesn't matter, if the code doesn't compile on a C compiler, it is C++.

The C++ question is kind of a trick question as a lot of C code is also valid C++ code, and it wasn't clear from the question which they meant.

It's written in C++.
next

Legal | privacy