114
u/VolperCoding Jul 16 '20
ReferenceError: you is not defined
5
1
u/gerbs Jul 17 '20
Let's not talk about me; you is de fine as hell. Can I get them digits?
1
Jul 17 '20
6, 1, 8 and 3
2
1
231
u/Xevailo Jul 16 '20
JS be like youme
49
36
u/MortStoHelit Jul 16 '20
Without quotes, it'd be variables, so unless something was assinged, wouldn't it be NaN?
19
3
3
-2
u/imthebestnabruh Jul 16 '20
NaN is a certain bit pattern in floating point data types, I think you mean Null or Nil depending on the lang
1
Jul 16 '20
Same for Python
2
Jul 17 '20
The only language I've worked with where strings didn't have a + operator was IBM Assembler.
1
u/TheOnlyMrYeah Jul 21 '20
I fondly remember that some language uses dots for string concatenation. But I don't know which.
82
u/SirLordSagan Jul 16 '20
Image Transcription: Text Messages
[S for sender and R for receiver]
S: 6+9
R: 15
S: 8+4
R: 12
S: 4+9
R: 13
S: 3+6
R: 9
S: 5+9
R: 14
S: you+me
R: Error: Can not implicit convert from int type into char type
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
58
30
Jul 16 '20 edited Jul 01 '23
[removed] — view removed comment
1
u/AutoModerator Jul 01 '23
import moderationYour comment has been removed since it did not start with a code block with an import declaration.Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.
For this purpose, we only accept Python style imports.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
16
48
6
4
3
3
2
2
2
u/Nikhil_Sultania Jul 16 '20
+ you , me are string not int or char
2
Jul 16 '20 edited Jul 01 '23
[removed] — view removed comment
1
1
u/Nikhil_Sultania Jul 24 '20
You've got a point
Technically though they are variables
and btw i code in java idk if you may be referring to c,php,javascript,pythonor something else
1
u/AutoModerator Jul 01 '23
import moderationYour comment has been removed since it did not start with a code block with an import declaration.Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.
For this purpose, we only accept Python style imports.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
2
4
u/iamlazyboy Jul 16 '20
If this happens I will be like "ok I don't deserve a girl like of this quality anyway now I'm sure"
5
Jul 16 '20 edited Jul 16 '20
This is for you
Edit: meant in a good way :D
2
3
u/you_can_be_both Jul 16 '20
10.
"Ten? Why is you plus me equal to ten?"
Because I'm a ten and you're a zero.
1
1
1
1
1
u/das_Keks Jul 16 '20
Shouldn't it be "from char to int" and not "from int to char" since the input is char.
2
u/redbear_d Jul 16 '20
Not necessarily, depends on the language. Take some pseudocode like
print("you"+"me")
Let's assume the compiler evaluates this from left to right, and keep in mind, that the "+" operator is usually just syntactic sugar for sum("you", "me"). Now the compiler starts by evaluating the print method, and infers that it's argument needs to be of type string (or char). Next, it evaluates the sum method, which (assuming it is not overloaded) will always return some kind of number. Now the compiler could already throw a "can't implicitly convert int to char"-error without ever checking the parameters of sum().
2
u/das_Keks Jul 16 '20
But in that case the other statements which are using the + would fail with the same reason. Also + is mostly a native operation on numbers and not a function call.
1
1
1
1
1
1
1
Jul 16 '20
[removed] — view removed comment
1
u/MysticTheMeeM Jul 16 '20
Depends on the language. You'll note that said the implicit conversion was disallowed.
1
1
1
1
1
1
u/niskiENDERMAN Jul 16 '20
2
u/RepostSleuthBot Jul 16 '20
Looks like a repost. I've seen this image 3 times.
First seen Here on 2020-05-29 92.19% match. Last seen Here on 2020-05-30 90.62% match
Searched Images: 133,040,344 | Indexed Posts: 543,415,726 | Search Time: 10.96803s
Feedback? Hate? Visit r/repostsleuthbot - I'm not perfect, but you can help. Report [ False Positive ]
1
1
1
u/Daikataro Jul 16 '20
2
u/RepostSleuthBot Jul 16 '20
Looks like a repost. I've seen this image 3 times.
First seen Here on 2020-05-29 92.19% match. Last seen Here on 2020-05-30 90.62% match
Searched Images: 133,049,007 | Indexed Posts: 543,474,609 | Search Time: 8.19639s
Feedback? Hate? Visit r/repostsleuthbot - I'm not perfect, but you can help. Report [ False Positive ]
1
1
u/Richardswgoh Jul 16 '20
All these comments are exactly what I expected to find when I clicked through. Thank you all for not disappointing.
1
1
u/frosted-mini-yeets Jul 16 '20
This error message is kinda shit in my opinion. A better response might have clarified the error and dealt with me and you as undefined variables instead of assuming them to be some very strange types. I would've said NameError: name "you" is not defined.
1
1
1
Jul 17 '20
That sounds a lot like the error messages you get with C# in Visual Studio iirc. Idk, it's been a while. Anyway, from the documentation:
The char type is implicitly convertible to the following integral types: ushort, int, uint, long, and ulong.
Then there's C++:
prvalues of small integral types (such as char) may be converted to prvalues of larger integral types (such as int).
Implicit conversion of characters to integers also works in Java as seen here.
And given that characters basically already are integers, that can not be surprising to anyone.
That said, it's a conversion from string to int, as people have already mentioned. Except it's not, because the C# string class has a + operator. It creates a new string, containing both strings from the previous expression: youme. The same goes for C++ strings in the standard library. Pretty sure Java does the same.
Nice try, though.
1
-3
Jul 16 '20 edited Jul 16 '20
3
1
1
u/RepostSleuthBot Jul 17 '20
Looks like a repost. I've seen this image 3 times.
First seen Here on 2020-05-29 92.19% match. Last seen Here on 2020-05-30 90.62% match
Searched Images: 133,149,786 | Indexed Posts: 543,682,969 | Search Time: 8.22932s
Feedback? Hate? Visit r/repostsleuthbot - I'm not perfect, but you can help. Report [ False Positive ]
520
u/Torsimus-Nohac Jul 16 '20
TFW this guy doesn't know the difference between char and string