Archive for Functional Programming
July 31, 2006 at 5:07 pm · Filed under Functional Programming, Computer Science
Bookmark on del.icio.us
An algebraic data type is a type defined via constructors that can subsequently – often in a functional language setting – be used in pattern matching. The typical example is (using Haskell syntax):
PLAIN TEXT
HASKELL:
data IntStack = Empty | Cons Int IntStack
One can view the type constructors (Cons and Empty above) as regular functions acting on [...]
July 11, 2006 at 6:31 pm · Filed under Java, Functional Programming
Bookmark on del.icio.us
Are you not tired of writing those boring for loops, repeating virtually the same boiler plate “finder” or “accumulator” code over and over again? Are you also too afraid of those academic languages or simply enjoy actually getting paid for what you do, i.e., you are confined to Java?
Well, I assume there are tons of [...]
July 6, 2006 at 5:34 pm · Filed under Functional Programming, Tools Reviews, Language Reviews
Bookmark on del.icio.us
Parsing code is hard, and strictly limited to The Chosen Few. Right? No, wrong!
I know you are aware of some compiler compilers or parser generators out there – i.e., frameworks that let you specify annotated grammar descriptions, often using a BNF (Backus Naur Form) kind of syntax. The most famous parser generator is Yacc, which [...]
« Previous entries ·