4 ms·
Some implementations of Standard ML (SML/NJ and MLton being the two I know of) support an extension to the language for vector (immutable array) literals. That
by zogrodea 2y ago
Some implementations of Standard ML (SML/NJ and MLton being the two I know of) support an extension to the language for vector (immutable array) literals. That would look like:
#[1, 2, 3]
It's still not a feature you can expect all implementations to have, so OCaml is not in a bad position there I think. (Although I prefer SML most of the time.)
- SassyBird 2y ago> It's still not a feature you can expect all implementations to have, so OCaml is not in a bad position there I think. The number of SML implementations supporting this feature is greater than the number of OCaml implementations. ;)