-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Implement 9 of 21 clojure.string vars #201
base: main
Are you sure you want to change the base?
Conversation
Very cool! If you start looking at regex, I started some of that work here. I'm still looking through various performance characteristic of different regex libraries. |
@@ -0,0 +1,55 @@ | |||
(ns clojure-string.self-test |
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.
Please put these tests in the https://github.com/jank-lang/clojure-test repo instead. We should have one place for testing all of the official Clojure namespaces.
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.
#include <jank/runtime/core.hpp> | ||
#include <jank/runtime/context.hpp> | ||
#include <jank/runtime/behavior/callable.hpp> | ||
#include <jank/runtime/visit.hpp> |
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.
You're not using any visting fns, while this is an incredibly expensive include. Please audit all of the includes here to ensure they're needed.
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.
Still working on this.
Implements:
clojure.string/blank?
clojure.string/capitalize
clojure.string/ends-with?
clojure.string/escape
clojure.string/includes?
clojure.string/lower-case
clojure.string/reverse
clojure.string/starts-with?
clojure.string/upper-case