- compare programming languages by example


Each comparison focuses on a small topic which is relevant to more than one programming language.
You can use this to compare the features and functionality of programming languages in a more concrete and example based manner than simply a list of paradigms and keywords would.

For example, to find comparisons about IO and Strings where answers have been given in both Haskell and Python: filter

Add a new comparison

Each comparison should ideally be:

Atomic: Instead of creating a "Boolean logic" comparison, instead it is prefered to create a "Boolean AND", "Boolean OR", etc and assign them all a "Boolean logic" tag.
Comparable: Ideally the comparison should be general enough in scope that it can be answered by multiple languages.
Concise: The comparison should be small enough in scope to be able to be answered in a 'small' snippet of code. Err towards functions rather than programs.

First create a concise but descriptive title and a full description of the functionality to be compare across programming languages. After submitting you will be able to add tags and code snippets.

Note: You must have permission to create new comparisons.

Snippets: 8

Function definition

Define functions that take arguments and produce a result.

Created by sam
Snippets: 7

Function call

Call functions with arguments, producing a result.

Created by sam
Snippets: 5

Reading files

Read the contents of files.

Created by sam
Snippets: 5

Writing files

Write data to files.

Created by sam
Snippets: 3

Function literals/ anonymous functions

The syntax for function literals/ anonymous functions (functions without names).

Created by sam
Snippets: 4

Varying function arguments

Pass a varying number of arguments into a function.

Created by sam
Snippets: 3

Program entry point

The entry point where execution of the program begins.

Created by sam
Snippets: 2

Named function arguments

Pass arguments by name into functions.

Created by sam
Snippets: 2

Declaring exceptions

The syntax for declaring new exception types.

Created by sam
Snippets: 9

Throw exceptions

The syntax for throwing exceptions.

Created by sam
❮ prev 0 next❯