Never programmed before? Want to move away from another language? Heard that functional programming is interesting and want to try?
This series of articles is intended to provide a quick and handy tutorial to Objective Caml programming—in an unusual fashion, perhaps, but I expect it to be efficient nonetheless.
The tutorial is split up into several sections, and each section is grouped into pages. Pages that have not been written yet are not linked. The table of contents is as follows:
-
First Steps
- What’s this programming thing anyway?
- The bulk of code: expressions.
- Giving names to things: variables.
- Keeping your variables clean: local definitions.
- Describing operations: functions.
- Passing several arguments: tuples and currying.
- Solving larger problems: recursive functions.
- Recursion-friendly data: lists.
- Giving up: exceptions.
- Working with text: strings.
-
The Type System
- Why doesn’t my code work?
- The basic types available in Objective Caml.
- The type inference algorithm.
- Silly compiler, no cookie: integers and reals.
- Defining list-like types: sum types.
- Naming parts of tuples: records.
-
Practical Tips
-
The Module System
-
The Compiling Process
-
Labeled Arguments
-
Polymorphic Variants
-
Classes And Objects
-
Imperative Programming
Hi. I'm Victor Nicollet,
Recent Comments