rick_h_ | morning | 12:34 |
---|---|---|
mrgoodcat | hi | 12:34 |
wolfger | morning | 12:55 |
rick_h_ | cmaloney: CHC tonight? | 12:56 |
cmaloney | rick_h_: Planning on it | 13:09 |
rick_h_ | cmaloney: party time | 13:09 |
cmaloney | Woo woo! | 13:09 |
shakes808 | morning | 13:10 |
cmaloney | https://plus.google.com/+SageLaTorra/posts/27Z4yW94RMf | 16:09 |
cmaloney | I will never understand PHP | 16:11 |
_stink_ | hahaha | 17:21 |
cmaloney | I have never seen another language go through as many hoops to get it wrong | 17:22 |
cmaloney | with the exception of Javascript | 17:22 |
jrwren | c++? | 17:24 |
jrwren | its gotta be up there with js and php. | 17:24 |
cmaloney | Does C++ parse a string to get the numbers out of it? :) | 17:25 |
jrwren | yes. so does C | 17:25 |
cmaloney | wut? | 17:25 |
jrwren | atoi() | 17:25 |
cmaloney | No no no nono | 17:25 |
cmaloney | I mean taking "3" + "I have 5 bananaas" and returning 8 | 17:26 |
jrwren | hhahahaa, no, not by default or course. | 17:26 |
cmaloney | type conversion I understand | 17:26 |
jrwren | yes, I think implicit type conversion should be considered BAD | 17:26 |
cmaloney | but that's just brain-damaged | 17:26 |
jrwren | imagine how much simpler JS would be if it didn't have implicit type conversion. | 17:27 |
cmaloney | Some conversion I don't mind a while lot | 17:27 |
jrwren | then again, python has it and its simple and understandable,s o I don't nkow. | 17:27 |
cmaloney | (I come from Perl so take that with a grain of salt) | 17:27 |
jrwren | yes, a small well defined set, or even an extensible set can be OK. | 17:27 |
jrwren | i come from perl too, and it was never an issue there. | 17:27 |
jrwren | I guess JS and PHP just fucked it up | 17:28 |
cmaloney | Well, went way too far at the very least | 17:28 |
jrwren | yeah, maybe that is it. | 17:29 |
cmaloney | if you have "2324" and add that to 3 then your choices are either to fail, treat as a string, or convert to integer | 17:29 |
cmaloney | but having "3FFF" + 3 convert to 6? I can't fathom where that would be appropriate | 17:29 |
jrwren | or... do the sane thing and treat 3 as a char literal and append ascii(3) to the string and get 2324^@ | 17:29 |
cmaloney | jrwren: I'd accept that, even though that would be surprising | 17:30 |
jrwren | it would? hrm. yeah, I guess maybe it would be. | 17:31 |
cmaloney | I think that's why PHP and Javascript are languages I don't like: they act in surprising ways | 17:31 |
cmaloney | and not good surprises | 17:31 |
jrwren | same here. but that is OUR problem, because we've been conditioned to expect things one way, and they do things another. | 17:31 |
cmaloney | like VB conversions to variant | 17:31 |
cmaloney | or True = -1 | 17:32 |
jrwren | everything is a variant! | 17:32 |
cmaloney | heh | 17:32 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!