To be honest, I think strict-typing is much easier to implement than run-time type checking which is essentially what a variant is. I think strict-type checking is a very important feature especially when it comes to performance and runtime efficiency.
Dire Wolf
www.digitalfiends.com
Let us talk about scripting languages...
How about contextual typing, much like Perl? Scalar context, list/array context and hash context (meaning implicit conversion of acceptable objects) depending on use. Perl in its current incarnation, though, has the minor quirk of not requiring parentheses unless it creates ambiguities; I don''t know if that''s necessarily a good thing for an intro scripting language though.
I wanna work for Microsoft!
I wanna work for Microsoft!
If we are going to write a VM I think contextual typing might be out of the question. Though I''m not sure of the technical implications of trying to implement contextual typing in a VM. It might be possible but extremely difficult and possibly out of the scope of this project...
Dire Wolf
www.digitalfiends.com
Dire Wolf
www.digitalfiends.com
Well I think I have enough feedback to start working on a grammar specification for the language. I still have to write the I/O completion port article and then after that I should have the time to layout a grammar/informal specification.
I''ll probably end up posting the grammar to the forums before I move on with the project. As I said, I''m no expert in this field (not a lot of people are) so it is always good to get feedback...
Best regards,
Dire Wolf
www.digitalfiends.com
I''ll probably end up posting the grammar to the forums before I move on with the project. As I said, I''m no expert in this field (not a lot of people are) so it is always good to get feedback...
Best regards,
Dire Wolf
www.digitalfiends.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement