@allanvgoncalves has joined the channel
@dfjennings has joined the channel
@shantanu.s.sardesai has joined the channel
@hey981 has joined the channel
Hi folks! Here's some examples of where rephrase is right now:
user=> (+ 1 "two")
Expected a number, but was given a string, at user/eval18838 (REPL:1) - runtime error (unexpected type).
user=> (foo 1 2 3)
Syntax error: the name foo is not defined, compiling at (REPL:1:1).
user=> (require '[foo.bar :as fb])
foo.bar could not be required, possibly due to a missing dependency, or a typo in the namespace name, at user/eval18841 (REPL:1) - runtime error (FileNotFoundException).
user=> (+ 1 :two)
Expected a number, but was given a keyword, at user/eval18843 (REPL:1) - runtime error (unexpected type).
user=> (/)
/ was called with no arguments, but it requires at least one argument, at user/eval19026 (REPL:1) - runtime error (incorrect number of arguments).
user=> (/ 1 0)
Tried to divide by zero, at user/eval19028 (REPL:1) - runtime error (ArithmeticException).
user=> (:k)
The keyword :k was used as a function, with no arguments, but it expects one or two arguments, at user/eval19030 (REPL:1) - runtime error (incorrect number of arguments).
user=> (:k 1 2 3)
The keyword :k was used as a function, with 3 arguments, but it expects one or two arguments, at user/eval19032 (REPL:1) - runtime error (incorrect number of arguments).
user=> (require '[clojure.string :as str])
nil
user=> (str/trim nil)
Tried to call .length() on a string, but was given 'nil', possibly in s (which may be in code you are calling), at user/eval19018 (REPL:1) - runtime error ('nil' encountered).
user=> (str/lower-case nil)
Tried to convert a value to a string, but was given 'nil', possibly in s (which may be in code you are calling), at user/eval19020 (REPL:1) - runtime error ('nil' encountered).
user=> (String/.toLower "Hello!")
No matching method toLower, taking 0 arguments, found on a string, at user/eval19034 (REPL:1) - runtime error (invalid argument).
user=> (String/.toLowerCase "Hello!")
"hello!"
user=> (String/.toLowerCase 42)
Expected a string, but was given a number, at user/eval19038 (REPL:1) - runtime error (unexpected type).
user=> (1 2 3)
Expected a function, but was given a number, at user/eval19040 (REPL:1) - runtime error (unexpected type).@ben.sless has joined the channel
@hhausman has joined the channel
@johnmwise has joined the channel