View Poll Results: Static Typing:
- 45. You may not vote on this poll
Results 1 to 25 of 85
Aug 28, 2008, 03:49 #1
- Join Date
- May 2006
- Lancaster University, UK
- 2 Post(s)
- 0 Thread(s)
Do You Think That PHP Would Benefit from Static Typing?
PHP is currently dynamically-typed. You can set a variable as one thing and it can be changed to something else and go through operations suited for other variable types (i.e. adding 5 to "3" = 8).
So, do you think PHP would be better with static typing? This is where you declare variables first.
I'm talking of something like:
String $var = "hello";
Int $num = Integer.parseInt($_GET['number']);
Var $something; //can equal anything.
"Sometimes you don't need to reinvent the wheel;
Sometimes its enough to make that wheel more rounded"-Molona