I have no idea.
I think it might hold in PHP. At least the random REPL that I found evaluates echo hello to hello in standard output (with a warning, though it did execute).
echo hello
hello
Indeed not:
As you see, hello is interpreted as "hello"—but as a consequence, 1 + hello is perfectly legitimate (and evaluates to 1… because PHP is weird).
"hello"
1 + hello
1
Ah, of course. Obviously PHP isn’t type-safe in any way. It does throw a warning at least in the REPL I tried.
Current theme: default
Less Wrong (text)
Less Wrong (link)
Arrow keys: Next/previous image
Escape or click: Hide zoomed image
Space bar: Reset image size & position
Scroll to zoom in/out
(When zoomed in, drag to pan; double-click to close)
Keys shown in yellow (e.g., ]) are accesskeys, and require a browser-specific modifier key (or keys).
]
Keys shown in grey (e.g., ?) do not require any modifier keys.
?
Esc
h
f
a
m
v
c
r
q
t
u
o
,
.
/
s
n
e
;
Enter
[
\
k
i
l
=
-
0
′
2
3
4
5
6
7
8
9
→
↓
←
↑
Space
x
z
`
g
I have no idea.
I think it might hold in PHP. At least the random REPL that I found evaluates
echo hello
tohello
in standard output (with a warning, though it did execute).Indeed not:
As you see,
hello
is interpreted as"hello"
—but as a consequence,1 + hello
is perfectly legitimate (and evaluates to1
… because PHP is weird).Ah, of course. Obviously PHP isn’t type-safe in any way. It does throw a warning at least in the REPL I tried.