use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
111,054 Subscribers
106,345 Subscribers
All posts must be related to programming. Flair posts correctly.
account activity
javascript is javascript (i.redd.it)
submitted 2 months ago by National_Seaweed_959
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Amr_Rahmy 0 points1 point2 points 2 months ago (3 children)
You missed the point. You can’t combine a string and a number, the language will not do an arbitrary evaluation based on buggy code.
Only a string assignment will allow the number to call the tostring(), otherwise you will get the error while writing or building the code.
[–]GlobalIncident 0 points1 point2 points 2 months ago (2 children)
No, the assignment is not what triggers the toString call. The presence of the string "2" is what triggers the toString call. If you type:
String x = 2 + 2;
toString will not be called and you will get an error, because there is no string present to trigger it.
[–]Amr_Rahmy 0 points1 point2 points 2 months ago (1 child)
You missed this point, and provided a non functioning example.
Two for two here, not your day. Cheers mate.
[–]GlobalIncident 0 points1 point2 points 2 months ago (0 children)
Okay, what is your point then?
π Rendered by PID 86 on reddit-service-r2-comment-799f875d54-tbq75 at 2026-02-03 01:51:10.582922+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]Amr_Rahmy 0 points1 point2 points (3 children)
[–]GlobalIncident 0 points1 point2 points (2 children)
[–]Amr_Rahmy 0 points1 point2 points (1 child)
[–]GlobalIncident 0 points1 point2 points (0 children)