Standard ML has references

Standard ML is not a pure language and has imperative structures like
references while and seq
This commit is contained in:
James Baker 2015-04-26 09:59:15 +01:00
parent ac8d9dde18
commit 02bc518351

View File

@ -8,8 +8,8 @@ contributors:
Standard ML is a functional programming language with type inference and some Standard ML is a functional programming language with type inference and some
side-effects. Some of the hard parts of learning Standard ML are: Recursion, side-effects. Some of the hard parts of learning Standard ML are: Recursion,
pattern matching, type inference (guessing the right types but never allowing pattern matching, type inference (guessing the right types but never allowing
implicit type conversion). If you have an imperative background, not being able implicit type conversion). Standard ML is distinguished from Haskell by including
to update variables can feel severely inhibiting. references, allowing variables to be updated.
```ocaml ```ocaml
(* Comments in Standard ML begin with (* and end with *). Comments can be (* Comments in Standard ML begin with (* and end with *). Comments can be