Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.)



> 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. ;)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: