Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better handling M.q #224

Merged
merged 1 commit into from
Apr 8, 2016
Merged

better handling M.q #224

merged 1 commit into from
Apr 8, 2016

Conversation

bobzhang
Copy link
Member

@bobzhang bobzhang commented Apr 8, 2016

No description provided.

@@ -673,7 +673,7 @@ function string_of_formatting_lit(formatting_lit) {
case 1 :
return formatting_lit[0];
case 2 :
return "@" + $$String.make(1, formatting_lit[0]);
return "@" + Caml_string.bytes_to_string(Bytes.make(1, formatting_lit[0]));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caml_string.bytes_to_string @@ Bytes.make (1, ..)

can be optimized as (String.fromCharCode ...

@bobzhang bobzhang merged commit 1840190 into master Apr 8, 2016
@bobzhang bobzhang deleted the inline_module_function branch April 8, 2016 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant