I'm developing my own programming language in my spare time as a hobby. It's an interpreted language. Currently the syntax for variables is this:
%<variable> = <value>
Here are some examples:
%test = 10 %somevar = "Hello World"
At the moment you can just declare as variable as shown above, regardless of the type. You can even change the type through the program if you want.
I've never studied Computer Science, so I'm not really aware of the Pros and Cons of static vs dynamic typing. Here are my questions:
- Is it faster to program using dynamic types?
- Is there any major advantage to going with static typing?
- Is this syntax good for a static language?
- Should a language that makes you write the type of the variable beside it when you create it allow you to change the type of a variable at run time?
- Should I allow both static and dynamic typing?
%somevar int = 10 %another str = "Hello World"
Here's a link to my GitHub, if your interested: https://github.com/reedoolang/reedoo