Let us talk about scripting languages...

Started by
23 comments, last by Dire.Wolf 22 years, 5 months ago
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
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com
Advertisement
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!
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
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com
If strict typing is easier then definitely go for it for version 1.
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
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com

This topic is closed to new replies.

Advertisement