Talk:Knuth shuffle: Difference between revisions

→‎Haskell: new section
(→‎C++: Yep, it happens.)
(→‎Haskell: new section)
Line 35:
 
:Standards change things in a lot of languages. If there is still a lot of users of an old standard and an example would be significantly different between standards then you could show them both - or '#ifdef ...' to accommodate both, or just add a comment stating what the change would be. Whatever is neatest. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 06:57, 3 June 2015 (UTC)
 
== Haskell ==
 
The haskell example doesn't run under GHC 7.8.3 and prints the following errors:
knuthshuffle.hs:9:39: Not in scope: ‘l’
 
knuthshuffle.hs:9:47: Not in scope: ‘x’