r/ProgrammerHumor • • Aug 26 '20

Python goes brrrr

Post image
59.2k Upvotes

789 comments sorted by

View all comments

Show parent comments

1

u/neil-lindquist Aug 26 '20

I was more getting at the fact that it's just slightly different notation for the same thing. You can rewrite this thread for Julia without much change in overall meaning.

No, you can't just exponentiate strings

julia> "Julia goes b" * "r"^10
"Julia goes brrrrrrrrrr"

This is exponentiating string by number. Exponentiating strings would look like "abc" ^ "de". Julia goes kaput.