NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
static typing (Score:1)
Static typing without type inference
If you're going to make a new language, please make a type-inferring version of C. kthxbye
Reply to This
Re:static typing (Score:2)
Re:static typing (Score:2)
That is, the function
sqis defined for all valuesa, such thatais an instance of the type classNum. Remember, Haskell is strongly typed, and this function is defined on all kinds of numbers (machine integers, bignums, floats, doubles, complex, etc.). Furthermore, it will be defined on all types you define that are also instances ofNum.This is a contrive
Re:static typing (Score:1)
All of these have entries posted at the shootout [debian.org].
None of these languages are suitable for low-level programming (kernels, databases, etc.), which is why we need a type-inferring version of something more like C.