<mvzink_>
using `+` is fine of course, but i'm very curious why this happens :)
<jemc>
mvzink_: maybe this example is more intuitive? `let x = ("Hello "; "Pony"); env.out.print(x)`
<mvzink_>
ahh, of course. thanks!
<jemc>
the first string is interpreted as an independent expression - a call to `String.create` whose return value is not used for anything
<jemc>
maybe we could argue that an exception to this could be made for the case of multi-line string literals - we could have that discussion in an RFC perhaps
<mvzink_>
i would only care about that if + were doing actual appends at runtime—is it?
<mvzink_>
i'm going to guess yes based on an unfounded pessimism about this type of optimization, due to a previous conversation about the lack of real constants
<jemc>
yeah, it is (unless LLVM is optimizing it out)
<mvzink_>
to be honest, i'm not sure whether i would prefer an RFC about multiline string literals, or a PR to the tutorial using this as an example to illustrate just how expression-based Pony is :)
<mvzink_>
because apparently a few days of only C made me forget
<mvzink_>
i mean, this works:
<mvzink_>
env.out.print(let x = "Hello "
<mvzink_>
x + "Pony!")
<jemc>
heh
graaff has quit [Quit: Leaving]
mvzink has joined #ponylang
shepheb has quit [Ping timeout: 276 seconds]
mvzink has quit [Ping timeout: 244 seconds]
shepheb has joined #ponylang
mvzink_ has quit [Quit: Ho ho ho!]
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 272 seconds]
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 248 seconds]
mvzink has joined #ponylang
jemc has quit [Ping timeout: 264 seconds]
mvzink has quit [Ping timeout: 264 seconds]
TonyLo has joined #ponylang
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 244 seconds]
calmclam has joined #ponylang
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 252 seconds]
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 252 seconds]
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 265 seconds]
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 265 seconds]
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 272 seconds]
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 252 seconds]
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 265 seconds]
c355e3b has joined #ponylang
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 244 seconds]
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 252 seconds]
_andre has joined #ponylang
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 272 seconds]
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 265 seconds]
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 272 seconds]
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 264 seconds]
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 248 seconds]
dinfuehr has quit [Ping timeout: 244 seconds]
dinfuehr has joined #ponylang
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 244 seconds]
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 264 seconds]
c355e3b has quit [*.net *.split]
c355e3b has joined #ponylang
mvzink has joined #ponylang
mvzink has quit [Ping timeout: 264 seconds]
mvzink has joined #ponylang
jemc has joined #ponylang
amclain has joined #ponylang
Matthias247 has joined #ponylang
TonyLo has quit []
M-hrjet has quit [Quit: node-irc says goodbye]
_andre has quit [Quit: leaving]
Matthias247 has quit [Read error: Connection reset by peer]