John M. Dlugosz wrote: > Just surfing, I noticed something about the "D" programming language: > > " > The types of constants need not be specified explicitly as the compiler > infers their types <http://en.wikipedia.org/wiki/Type_inference> from > the right-hand sides of assignments. > > const fact_7 = Factorial!(7); > "
Doesn't perl do this when you don't specify a type? constant $pi = sub_that_calcs_pi(); Since static types are optional, I don't see the point in explicitly speccing type inference. That's only stating that type information is determined at compile time, which seems like an optimization to me that doesn't need to be in perl 6.0.0. Of course any implementer is welcome to do perform that optimization where possible ;-) Moritz -- Moritz Lenz http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature