Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

ML

< >

ML, aka Meta Language, is a programming language created in 1973 by Robin Milner.

#176on PLDB 51Years Old
Wikipedia · FAQ · Docs

ML ('Meta Language') is a general-purpose functional programming language. It has roots in Lisp, and has been characterized as "Lisp with types". It is known for its use of the polymorphic Hindley–Milner type system, which automatically assigns the types of most expressions without requiring explicit type annotations, and ensures type safety – there is a formal proof that a well-typed ML program does not cause runtime type errors. Read more on Wikipedia...


Example from Wikipedia:
structure Rational : ARITH = struct datatype t = Rat of int * int; val zero = Rat(0,1); fun succ(Rat(a,b)) = Rat( a+b , b ); fun sum (Rat(a,b), Rat(c,d)) = Rat(a*d+ c*b , b*d) : t ; end

Language features

Feature Supported Example Token
Assignment ✓ :=
Type Inference ✓
Garbage Collection ✓
Line Comments X

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v154.3.0