What is the difference between " and '


#1

it looks like i often got an error just because i’m using single quote rather than double quote,
but in some cases i can use single quote,

anyone know what is the difference between double quote and single quote in reasonml?

thanks in advance!


#2

It would be interesting to provide a case where you manage to use a single quote instead of a double.

  • Single quotes are for single character type.
  • Double quotes are for strings.

https://reasonml.github.io/docs/en/syntax-cheatsheet (2nd table)