-
Notifications
You must be signed in to change notification settings - Fork 9
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
Remove uses of JS classes in OCaml, Part 1 #34
Conversation
@@ -22,7 +22,7 @@ let _console_dir s : unit = | |||
let raise_error s = | |||
Js.Js_error.(raise_ @@ of_error (new%js Js.error_constr (Js.string s))) | |||
|
|||
let raise_errorf fmt = Core_kernel.ksprintf raise_error fmt | |||
let _raise_errorf fmt = Core_kernel.ksprintf raise_error fmt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if these arent used anymore, should we just remove them? I noticed _console_log
also isnt used anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, for _console_log
, I always use that if I need to debug something, and deleting it would cost me time to reimplement it. Not sure about _raise_errorf
, yeah maybe we can delete that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, for _console_log, I always use that if I need to debug something
Ah okay, that makes sense!
remove most uses of JS classes from snarkyjs-ocaml, except the field and bool classes themselves