Skip to content

Commit 9c56542

Browse files
committed
feat: infix printing for logical operations
1 parent b3660ae commit 9c56542

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DynamicExpressions"
22
uuid = "a40a106e-89c9-4ca8-8020-a735e8728b6b"
33
authors = ["MilesCranmer <miles.cranmer@gmail.com>"]
4-
version = "1.9.2"
4+
version = "1.9.3"
55

66
[deps]
77
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"

src/Strings.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ end
8282

8383
# Vector of chars is faster than strings, so we use that.
8484
function combine_op_with_inputs(op, l, r)::Vector{Char}
85-
if first(op) in ('+', '-', '*', '/', '^', '.')
85+
if first(op) in ('+', '-', '*', '/', '^', '.', '>', '<', '=') || op == "!="
8686
# "(l op r)"
8787
out = ['(']
8888
append!(out, l)

0 commit comments

Comments
 (0)