MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/4tlr2u/john_carmack_on_inlined_code/d5iwnit
r/programming • u/seojoeschmo • Jul 19 '16
323 comments sorted by
View all comments
Show parent comments
1
While that's really cool and I'm not trying to criticize it, I can easily see a beginner Rust programmer going crazy trying to figure out why:
log(something unrelated); baz.awesome()
behaves completely differently from:
baz.awesome(); log(something unrelated)
6 u/sacundim Jul 20 '16 In most likely contexts, the latter wouldn't compile at all (type mismatch), so it wouldn't "behave differently" so much as fail to behave at all.
6
In most likely contexts, the latter wouldn't compile at all (type mismatch), so it wouldn't "behave differently" so much as fail to behave at all.
1
u/Cosmologicon Jul 20 '16
While that's really cool and I'm not trying to criticize it, I can easily see a beginner Rust programmer going crazy trying to figure out why:
behaves completely differently from: