Skip to content

fix && || tail call, it generates some large expressions (Fix #50) #73

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

Merged
merged 1 commit into from
Feb 4, 2016

Conversation

bobzhang
Copy link
Member

@bobzhang bobzhang commented Feb 4, 2016

for things like return +(code>31 && code< 96), we can improve it later

…ike `return +(code>31 && code< 96)`, we can improve it later
@@ -149,7 +149,12 @@ function caml_string_of_char_array(chars) {

function caml_is_printable(c) {
var code = c;
return +(code > 31 && code < 127);
if (code > 31) {
Copy link
Member Author

Choose a reason for hiding this comment

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

should improve it later

bobzhang added a commit that referenced this pull request Feb 4, 2016
fix && || tail call, it generates some large expressions (Fix #50)
@bobzhang bobzhang merged commit 52eb3a5 into master Feb 4, 2016
@bobzhang bobzhang deleted the if_then_else_fix branch February 4, 2016 20:23
Mathspy pushed a commit to Mathspy/melange that referenced this pull request Mar 28, 2021
kevinbarabash pushed a commit to kevinbarabash/rescript-compiler that referenced this pull request Dec 24, 2021
* Implement outcome printing of polymorphic variants

* Omit printing of leading Ptyp_variant bar when layout doesn't break.

type color = [ #Red | #Blue | #Green ]
VS
type color = [
  | #Red
  | #Blue
  | #Green
]

Should be consistent with outcome printer

* Improve consistency spacing brackets surrounding poly vars in outcome printer

[ #red ] should be [#red]

* Improve consistency spacing brackets surrounding poly vars in typexpr printer

[ #red ] should be [#red]

* Print exotic names escaped in poly-var outcome printer

* Document meaning of outcome printer
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