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

Remove uses of JS classes in OCaml, Part 1 #34

Merged
merged 15 commits into from
Jun 12, 2023
Merged

Conversation

mitschabaude
Copy link
Member

@mitschabaude mitschabaude commented Jun 5, 2023

remove most uses of JS classes from snarkyjs-ocaml, except the field and bool classes themselves

@mitschabaude mitschabaude changed the base branch from main to refactor/scalar June 7, 2023 13:19
Base automatically changed from refactor/scalar to main June 8, 2023 14:36
@mitschabaude mitschabaude changed the title Remove uses of JS classes in OCaml Remove uses of JS classes in OCaml, Part 1 Jun 8, 2023
@mitschabaude mitschabaude marked this pull request as ready for review June 8, 2023 14:52
@@ -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
Copy link
Member

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_logalso isnt used anymore

Copy link
Member Author

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

Copy link
Member

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!

@mitschabaude mitschabaude merged commit 41155c1 into main Jun 12, 2023
@mitschabaude mitschabaude deleted the refactor/cleanup branch June 12, 2023 15:42
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.

None yet

2 participants