Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
 
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		- 
				
				If done correctly, that should be possible.
 In many langs the number gets converted to a string (regardless of orientation!) and classes can ocerwrite se sort of to-string method that gets called upon concatination with another string.
- 
				
				@LinusCDE No that shouldn't be possible because it's stupid and leads to errors. Ask the javascript sort function if you want an example
- 
				
				@12bitfloat Well I excluded JS because of that.
 Other static programming languages (Java, C#,...) give you both benefits.
 
 JS having two results based on the order of operands (""+1 vs 1+"") is just ridiculus.
- 
				
				 river2261406y@12bitfloat @LinusCDE the key is what you are doing with the result. If you are putting them into a string, then whatever, if you want the sqrt of "Y" + 0 then you have complications. If you are scared by this functionality you should use a statically or strongly typed language. river2261406y@12bitfloat @LinusCDE the key is what you are doing with the result. If you are putting them into a string, then whatever, if you want the sqrt of "Y" + 0 then you have complications. If you are scared by this functionality you should use a statically or strongly typed language.
- 
				
				@river226 If you want to run sqrt("Y" + 0) then you'll have the same problems since sqrt will receive the calculated result of "Y" + 0 and will need to act accordingly (or don't work at all in statically typed langs which is why I love those over dynamic ones).
- 
				
				@river226 I'm also scared of bad smells and disgusting food. Maybe has something in common
- 
				
				 river2261406y@12bitfloat well the problem is that "Y" + 0 + "L" + 0 is valid syntax in most static languages. As far as disgust I have noticed it depends on where you come from much like food. river2261406y@12bitfloat well the problem is that "Y" + 0 + "L" + 0 is valid syntax in most static languages. As far as disgust I have noticed it depends on where you come from much like food.
- 
				
				@river226 LinusCDE was talking about weak typing. Numeric to string type coercion is about as much weak typing as is desirable
- 
				
				I'm working on a yolo project my self. Yolo is awesome. That a camel, that's a bird, that's a bike.
 
 Fucking amazing 😁👍
- 
				
				 Sumafu21906y@olback I just hate the === operator. I forget it every time and only my IDE reminds me of it 😅 Sumafu21906y@olback I just hate the === operator. I forget it every time and only my IDE reminds me of it 😅
- 
				
				 olback106466y@Sumafu I agree. == should really act like ===. And sure, JS is just plain weird sometimes. olback106466y@Sumafu I agree. == should really act like ===. And sure, JS is just plain weird sometimes.






Y0L0...
joke/meme