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

Its that time again (suggest a language)

Name: Anonymous 2007-04-26 3:48 ID:WgsXgi3d

What's the best language for a complete beginner to pick up and learn?

I'm able to read through sources in various languages and understand whats happening on a fundamental level.

I want to learn a language over the next 3~5 months and i cant make any informed desicions on which.

Suggest the language best suited to an entry level programmer.

IN BEFORE SHITSTORM

Name: Anonymous 2007-04-30 12:59 ID:whdQMUlC

>>125
It's a calculator domain-specific language. Here's the full code

[code]
data Term = Number Double
          | Inverse Term
          | Add Term Term
          | Mul Term Term

eval :: Term -> Double
eval (Number x) = x
eval (Inverse x) = 1 / x
eval (Add t1 t2) = eval t1 + eval t2
eval (Mul t1 t2) = eval t1 * eval t2
[code]

i.e.
*Main> eval $ Inverse (Add (Mul (Number 2) (Number 3)) (Number 2))
0.125

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