2 ms·
You might not care about types but the computer you are running your code on, cares very much.
by DeathArrow 5y ago
You might not care about types but the computer you are running your code on, cares very much.
- islon 5y agoAre they releasing processors with typed registers now? AFAIK registers and assembly is untyped.
- phendrenad2 5y agoThat's true, however I think you're misunderstanding how languages work. The Ruby interpreter knows the "type" of everything. How could it not? It was there when you defined a variable, and it was there when you added data to it. It's there when you define interfaces and other things that might affect the type of something. It's perfectly capable of holding all of that information. And there's no meaningful difference between parsing "int x = 3;" and "var x = 3;" in a program.