Re:Zinc: a low level language between assembler, C and C++ w...
by jbri on Wednesday December 22, 2010 @03:36PM
(#2032358)
No, you can't really do the same with Zinc. In Ruby, if there's a keyword somewhere, it's pretty damn obvious it's not part of an identifier.
With Zinc, you need to know what all the keywords are just to tell what the name of something is.
And that doesn't even start on additions to the language completely breaking your code because you used that word in an identifier somewhere...
You can form a rough guess of what the various tokens are in a snippet of Ruby code without knowing all the keywords, and you can do the same with Zinc code. Any additional difficulty is most likely because you're less familiar with Zinc, not because it has the nearly universal property of needing to know the full grammar to correctly parse arbitrary programs.
And I agree, playing around with a language is a great way to learn. But if you play around without reading about the things you're doing first, you should expect not to always know what you're doing. That's a huge part of the learning process.