>>18
1. You are not a BBCode EXPERT PROGRAMMER
2. You are not printing data types for each result
Name:
Anonymous2007-06-11 6:49 ID:stMLZhfW
0xffffffff is a double; clearly a different type to 0xffffff or 0xffffffffff. who cares anyway lolz. Ima EXERPT PHP PROGRAMMER
Name:
Anonymous2007-06-11 6:53 ID:a5LhG+RR
>>19
Here you go, unrolled for extra performance: 0xffffff (BBstring) 0xfffffff (BBstring) 0xffffffff (BBstring) 0xfffffffff (BBenterpriseString) Strings longer than 10 characters are Enterprise strings and have special string-handling logic for Enterprise uses, proving that BBcode is Ready for the Enterprise. 0xffffffffff (BBenterpriseString)
>>17
Haskell is static-typed. main = do mapM_ (\x -> putStrLn $ show x ++ " (Integer)") [2^24, 2^28, 2^32, 2^36, 2^40]
If there are some EXPERT PhD Haskell-fags here, I would like to see how I did that properly with Data.Typeable and typeOf, as I failed to write this myself (lol I'm EXPERT HASKELL NOOB).
Name:
Anonymous2007-06-11 10:15 ID:VajvBFTU
>>23 main = mapM (putStrLn . (\x -> show x ++ " " ++ (show $ typeOf x))) [2^24, 2^28, 2^32, 2^36, 2^40]
Static typing is superior. Dynamc typing is where eveything is a hash table and symbols are looked up at runtime. Fuck that shit.
Name:
Anonymous2007-06-11 12:55 ID:nyA4QwsZ
<?php='This thread is made of win and gold.';?>
Name:
Anonymous2007-06-11 13:24 ID:yNsJGhnt
>>24
NO WAI. That's why I failed this myself. test.hs:2:56:
Ambiguous type variable `a' in the constraints:
`Typeable a' arising from use of `typeOf' at test.hs:2:56-61
`Num a' arising from the literal `2' at test.hs:2:93
Probable fix: add a type signature that fixes these type variable(s)
Name:
Anonymous2007-06-11 14:03 ID:8M78aAVJ
>>28
Dynamic typing is when your language doesn't touch your balls and allows every operation you can envision, as long as it's doable. Objects have type, and are checked for type as needed. Of course a watermelon can't read SICP. But a human can read SICP. And even if they don't descend from the same class nor they follow any stupid idiot restriction, a runtime-created alien class can read SICP if aliens can .read .