mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
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:
parent
ac8d9dde18
commit
02bc518351
@ -8,8 +8,8 @@ contributors:
|
||||
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,
|
||||
pattern matching, type inference (guessing the right types but never allowing
|
||||
implicit type conversion). If you have an imperative background, not being able
|
||||
to update variables can feel severely inhibiting.
|
||||
implicit type conversion). Standard ML is distinguished from Haskell by including
|
||||
references, allowing variables to be updated.
|
||||
|
||||
```ocaml
|
||||
(* Comments in Standard ML begin with (* and end with *). Comments can be
|
||||
|
Loading…
Reference in New Issue
Block a user