Re: Static Typing in Python
From: Jacek Generowicz (jacek.generowicz_at_cern.ch)
Date: 03/19/04
- Next message: Josef Meile: "Re: Hiding console window"
- Previous message: Jacek Generowicz: "Re: loop scope"
- In reply to: Donn Cave: "Re: Static Typing in Python"
- Next in thread: Donn Cave: "Re: Static Typing in Python"
- Reply: Donn Cave: "Re: Static Typing in Python"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 19 Mar 2004 09:40:11 +0100
Donn Cave <donn@u.washington.edu> writes:
> Speaking of which, Haskell's type system supports type classes
> like Num (number), where Int and Float are instances of Num
> that implement its "+" function.
This is pretty much what you'd do in OCaml too, I believe.
> I'm probably leaving out a paragraph or two of the interesting
> parts, but the end result is that 1.5 + 1 works. Haskell is not
> weakly typed.
But the point is that the programmer conrols whether the automatic
conversion is done or not. In weakly typed languages you get the
conversion whether you want it or not.
- Next message: Josef Meile: "Re: Hiding console window"
- Previous message: Jacek Generowicz: "Re: loop scope"
- In reply to: Donn Cave: "Re: Static Typing in Python"
- Next in thread: Donn Cave: "Re: Static Typing in Python"
- Reply: Donn Cave: "Re: Static Typing in Python"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|