Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I am learning Haskell

Name: Anonymous 2007-07-07 9:46 ID:djEstxaJ

I am a complete newbie to programming and now I've decided to learn Haskell because I want to code a roguelike game.
Here is what I've achieved so far:

Hugs> print Hello World!
ERROR - Syntax error in expression (unexpected end of input)
Hugs> pring "Hello World!
ERROR - Improperly terminated string
Hugs> pring "Hello World!"
ERROR - Undefined variable "pring"

Name: Anonymous 2007-07-09 0:02 ID:gUgf8wgX

Try to write it in BBCode.  It has much more expressive power and type inferring abstraction efficiency using principles of modern typed bbcode calculus, namely Touring-Grahum theorem for category axiomatic reflection over tensor product of polyadic subspaces.

Let me show you an example:
    [define][fixed-point=":f: :first-guess:"]
     [define][close-enough=":v1: :v2:"]
       [<][abs]- v1 v2[/abs]tolerance[/<][/define]
     [define][try="guess"]
       [let=""next [f]guess[/f]""]
         [if="close-enough? guess :next:"]
             :next:
             [try]:next:[/try][/if][/let][/define]
     [try]:first-guess:[/try][/define]

See how readable it is?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List