Skip to content

Instantly share code, notes, and snippets.

@kennetpostigo
Created June 24, 2018 14:23
Show Gist options
  • Save kennetpostigo/eaf441ac000f04d29e0210ea6922c28a to your computer and use it in GitHub Desktop.
Save kennetpostigo/eaf441ac000f04d29e0210ea6922c28a to your computer and use it in GitHub Desktop.
Reason BST Blog Post primitives
/* String must use double quotes */
let myString = "Hello World!";
let myInt = 5;
/* Float doesn't have to have a trailing 0 */
let myFloat = 5.;
/* Char must use single quotes */
let myChar = 'c';
let myBool = true;
/* The syntax for unit is (), by itself */
let myUnit = ();
/* This fn is effectful and returns unit, it prints to stdin */
print_string(myString);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment