Re:Where is Ruby Headed in 2021?
by DeathArrow on Friday November 19, 2021 @06:13AM
(#29276035)
You might not care about types but the computer you are running your code on, cares very much.
[ Parent
| on HN ]
Are they releasing processors with typed registers now?
AFAIK registers and assembly is untyped.
Re:Where is Ruby Headed in 2021?
by phendrenad2 on Friday November 19, 2021 @03:00PM
(#29281597)
That'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.