www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

D - Templates and the Hindley-Milner type system

↑ ↓ ← "Thiago F.G. Albuquerque" <tfga zaz.com.br> writes:
How about using the Hindley-Milner type system? Then you wouldn't need
templates.

Thiago
Nov 19 2001
↑ ↓ "Pavel Minayev" <evilone omen.ru> writes:
"Thiago F.G. Albuquerque" <tfga zaz.com.br> wrote in message
news:3BF93011.7EF83D5 zaz.com.br...

 How about using the Hindley-Milner type system? Then you wouldn't need
 templates.

I'm not familiar with that system. Could you please describe it in more details?
Nov 19 2001
↑ ↓ → "Thiago F.G. Albuquerque" <tfga zaz.com.br> writes:
Pavel Minayev wrote:
 How about using the Hindley-Milner type system? Then you wouldn't need
 templates.

I'm not familiar with that system. Could you please describe it in more details?

I don't know much about it, either. It is the type system of Haskell. Haskell has static type checking and parametric polymorphism without the use of templates. So I thought it could be a good alternative to templates in D. The problem is that I don't know if Hindley-Milner can be used with an imperative language. But I think it is worth investigating. Other languages that use Hindley-Milner are ML and Miranda. Thiago
Nov 23 2001