Skip to content

Instantly share code, notes, and snippets.

@Schmavery
Created April 26, 2019 00:01
Show Gist options
  • Select an option

  • Save Schmavery/bc043119d51509158bf4a0e0bb992e05 to your computer and use it in GitHub Desktop.

Select an option

Save Schmavery/bc043119d51509158bf4a0e0bb992e05 to your computer and use it in GitHub Desktop.
Foolish imaginings of a world where snake case and camel case live together in harmony

Reason to OCaml:

  • firstsecond => firstsecond
  • firstSecond => first_second
  • first_second => firstSecond
  • first_Second => first_Second

Ocaml to Reason

  • firstsecond => firstsecond
  • firstSecond => first_second
  • first_second => firstSecond
  • first_Second => first_Second

... eh they're the same I guess

@Schmavery

Copy link
Copy Markdown
Author

Downside: bsc will read ocaml version from the ast and the js bindings will have camelcase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment