News for hackers. Stuff that matters.
Re:My Reality Moment. Why did I ever agree to do this? by PhasmaFelis on Friday September 18, 2015 @07:17PM (#10242590)
What possibly value is there in coercing strings to integers for _some_ operations but not _all_? I can see rationales for always doing it or never doing it, but this seems like the worst of both worlds.
Re:My Reality Moment. Why did I ever agree to do this? by recursive on Friday September 18, 2015 @07:26PM (#10242628)
The rationale is that + is defined for strings, but - is not.
Re:My Reality Moment. Why did I ever agree to do this? by PhasmaFelis on Saturday September 19, 2015 @01:12AM (#10243374)
That's less a "rationale" and more a "cause," though. If adding quoted integers always treats them as strings, never integers, then allowing coders to subtract quoted integers as integers can only possibly lead to confusion. One or the other should be removed entirely (probably the second, but what do I know).