void teleport(Person person);
It needs an empty catch block
I had to turn my phone sideways and go cross-eyed to spot the difference.
The best part is, unless that function name is misleading, it doesn't matter how the data is passed; a copy is being sent out over TCP/IP to another device regardless.
I don't get it
It wouldn't be you, it would just be another person with the same memories that you had up until the point the copy was made.
When you transfer a file, for example, all you are really doing is sending a message telling the other machine what bits the file is made up of, and then that other machines creates a file that is just like the original - a copy, while the original still remains in the first machine. Nothing is even actually transferred.
If we apply this logic to consciousness, then to "transfer" your brain to a machine you will have to make a copy, which exist simultaneously with the original you. At that point in time, there will be two different instances of "you"; and in fact, from that point forward, the two instances will begin to create different memories and experience different things, thereby becoming two different identities.
The first line passes the argument by reference, ie, the object itself.
The second line passes the object by value, ie, a copy.
Also in Rust that would be the opposite which is funny but confusing
Sorry Dave, I'm afraid I can't do that
Are you sure the roon of today is a reference to yesterday's roon?
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics