"Robert Clipsham" <rob...@octarineparrot.com> wrote in message news:iqjer9$1mai$1...@digitalmars.com... > On 13/05/2011 08:09, Jacob Carlborg wrote: >> >> How is it working out with a static type system, compared to a dynamic, >> for web development? > > How many times, while using a dynamically typed language, do you ever > change the type of a variable? I've written a fair amount of PHP, and I > rarely, if ever want my string to suddenly become an integer (if I do it > generally needs validation/conversion anyway). When using my own and > others code I frequently see type checks/conversions etc, it just makes > the code ugly - with a staticly typed system you remove this overhead. > > Also, there's the auto keyword, and easily accessible function templates. >
And templates for when you want a function to accept multiple types, and Variant for the few times when changing a variable's type might actually be useful.