|
is f# actually a good language i learned some haskell, what is f# missing out of that
|
# ? Oct 14, 2013 20:16 |
|
|
# ? May 27, 2024 02:09 |
|
if the answer doesn't include "type constructors" i'm going to write my next random-rear end tool in it
|
# ? Oct 14, 2013 20:16 |
|
f# has a weird thing "use clear" or something thats like use strict in js thats all i know about it
|
# ? Oct 14, 2013 20:18 |
|
Otto Skorzeny posted:increment 9 and you get A. 2d9 + 1 = 2da. (actually '2d9' + 1 == 'Argument "2d9" isn't numeric in addition (+) at foo.pl line bar' but w/e) no, you get 10. and we're talking about incrementing here, not addition. (thus we see the continuous rhetorical shifting of the anti-php zealot: they have been shown to be wrong about this operator, so suddenly they were talking about that operator all along)
|
# ? Oct 14, 2013 20:18 |
|
i'm starting to learn go for some reason seems neat. haven't actually gotten to any of the fancy stuff yet (i.e. concurrency), but digging the syntax and such so far. though i don't know how i feel about using for for everything instead of having while, each, etc
|
# ? Oct 14, 2013 20:19 |
|
Tiny Bug Child posted:yes it is. increment 9 and you get 10. carry the 1 and you have to increment d. increment d and you get e. carry the one? jesus gently caress man. either it's "2d:" or it's 0x2da, changing bases on you while incrementing is absolutely wrong
|
# ? Oct 14, 2013 20:30 |
|
Tiny Bug Child posted:yes it is. increment 9 and you get 10. carry the 1 and you have to increment d. increment d and you get e. this makes perfect sense for a clown to ponder at the circus programming workshop
|
# ? Oct 14, 2013 20:30 |
|
trex eaterofcadrs posted:carry the one? jesus gently caress man. either it's "2d:" or it's 0x2da, changing bases on you while incrementing is absolutely wrong man nobody is talking about bases; you are way oversperging this. increment a number and you get that number plus one. increment a character and you get the next ascii character except in convenience cases like with upper/lowercase or the zzz -> aaaa thing.
|
# ? Oct 14, 2013 20:47 |
|
i feel like the blond guy from the princess bride, when he is on the torture machine and the 6 fingered man says "i've just sucked one year of your life away"
|
# ? Oct 14, 2013 20:51 |
|
Tiny Bug Child posted:man nobody is talking about bases; you are way oversperging this. increment a number and you get that number plus one. increment a character and you get the next ascii character except in convenience cases like with upper/lowercase or the zzz -> aaaa thing. Why the gently caress does it think it can do an increment operation on the 2d9 in the first place, that's only a valid number in HEX. Does it just look at the last digit and say hmmm lets add a one to it... ahh no gently caress this, gently caress php Zlodo posted:this makes perfect sense
|
# ? Oct 14, 2013 20:54 |
|
some may think that tbc is "trolling" or being otherwise unhelpful, but here's the thing:Tiny Bug Child posted:man nobody is talking about bases; you are way oversperging this. increment a number and you get that number plus one. increment a character and you get the next ascii character except in convenience cases like with upper/lowercase or the zzz -> aaaa thing. this is exactly right. this is exactly the way that the developers of php actually think. don't write a php.
|
# ? Oct 14, 2013 20:58 |
|
Tiny Bug Child posted:no, you get 10. and we're talking about incrementing here, not addition. (thus we see the continuous rhetorical shifting of the anti-php zealot: they have been shown to be wrong about this operator, so suddenly they were talking about that operator all along)
|
# ? Oct 14, 2013 21:04 |
|
im the language where strings are implicitly base 10 and base 26
|
# ? Oct 14, 2013 21:37 |
|
im the sperg that needs to talk about bases before i plus some numbers together
|
# ? Oct 14, 2013 21:43 |
|
Dessert Rose posted:is f# actually a good language it's got some warts but i like it a lot. i don't know haskell though so i can't say what you might be missing. i don't know what a "type constructor" is but based on googling it looks like you might be able to get there with adts + .net generics so give it a shot!
|
# ? Oct 14, 2013 22:06 |
|
it's nbd in lisp, i'm impressed that they didn't accidentally turn into c++ or haskell or something weird trying to intuitively support macros in their syntaxhaving language
|
# ? Oct 14, 2013 22:13 |
|
Tiny Bug Child posted:im the sperg that needs to talk about bases before i plus some numbers together
|
# ? Oct 14, 2013 22:20 |
|
Tiny Bug Child posted:im the sperg that needs to talk about bases before i plus some numbers together apparently when it's php that's kinda mandatory
|
# ? Oct 14, 2013 22:22 |
|
code:
|
# ? Oct 14, 2013 22:50 |
|
this is your brain on php
|
# ? Oct 14, 2013 23:17 |
|
Zlodo posted:this is your brain on php http://forums.somethingawful.com/search.php?action=do_search_posthistory&userid=63627
|
# ? Oct 14, 2013 23:36 |
|
git clone trooper posted:http://forums.somethingawful.com/search.php?action=do_search_posthistory&userid=63627 summary: a lot of bad yosposting
|
# ? Oct 15, 2013 00:57 |
|
Tiny Bug Child posted:im the sperg that needs to talk about bases before i plus some numbers together I thought we were talking about incrementing? or is your php zealot rhetoric shifting now
|
# ? Oct 15, 2013 01:10 |
|
trex eaterofcadrs posted:carry the one? jesus gently caress man. either it's "2d:" or it's 0x2da, changing bases on you while incrementing is absolutely wrong there's no change of bases going on, the whole calculation is done in base 10 and whatever
|
# ? Oct 15, 2013 02:38 |
|
Max Facetime posted:there's no change of bases going on, the whole calculation is done in base 10 and whatever yes, common base 10 math such as d + 1 = e
|
# ? Oct 15, 2013 02:39 |
|
i'm confused here, it seems that some people unironically do not understand license plate arithmetic
|
# ? Oct 15, 2013 02:45 |
|
shrughes posted:i'm confused here, it seems that some people unironically do not understand license plate arithmetic Maybe if people would have used a letter higher in the alphabet no one would have that was in HEX
|
# ? Oct 15, 2013 02:49 |
|
shrughes posted:i'm confused here, it seems that some people unironically do not understand license plate arithmetic 2d9 + 1 = 2e0 2e0 + 1 = 3 just lol
|
# ? Oct 15, 2013 02:50 |
|
Bloody posted:2d9 + 1 = 2e0 yeah now im doing tbcs logic here 2e0 + 1 okay you just add 1 to the 0 2e1 right no 3 actually sorry because 2+1 = 3
|
# ? Oct 15, 2013 02:57 |
|
it is not possible for a human being to independently come up with a spec for + that acts like php the only way to specify php + is to look at the implementation after the fact and write down what it does
|
# ? Oct 15, 2013 03:00 |
|
its easy you just add the first number you see and if it's 9 it's okay to start looking from the right and if it's 0 it's okay to start looking from the left
|
# ? Oct 15, 2013 03:01 |
|
General Olloth posted:yeah now im doing tbcs logic here what? no jfc. did you even see the part about scientific notation? 2e0 = 2. 2e1 = 20. 2e2 = 200. that is seriously like middle school stuff
|
# ? Oct 15, 2013 03:25 |
|
find me a language other than php where adding 1 to a hexadecimal number produces a decimal number in exponential notation
|
# ? Oct 15, 2013 03:30 |
|
JewKiller 3000 posted:find me a language other than php where adding 1 to a hexadecimal number produces a decimal number in exponential notation no jfc it wasnt a hex number it was just a string get it through your face
|
# ? Oct 15, 2013 03:33 |
|
*ignores part about automatically mutating type*
|
# ? Oct 15, 2013 03:34 |
|
ugn types dont exist its a problem u made for yourslef
|
# ? Oct 15, 2013 03:34 |
|
why the gently caress is anyone talking about hexadecimal numbers
|
# ? Oct 15, 2013 03:34 |
|
General Olloth posted:no jfc it wasnt a hex number it was just a string i was waiting for him to reply with that so i could make a snide comment about types
|
# ? Oct 15, 2013 03:35 |
|
oh poo poo my bad it's not even a hex add the first time it's something much worse like i said, cannot be specified except by a braindead php-only programmer (tbc)
|
# ? Oct 15, 2013 03:37 |
|
|
# ? May 27, 2024 02:09 |
|
JewKiller 3000 posted:oh poo poo my bad it's not even a hex add the first time it's something much worse i cant keep posting like him im starting to get it help send help
|
# ? Oct 15, 2013 03:39 |