Comparisment

   - compare programming languages by example

Comparisons

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.


13
Snippets: 3

Declare (imutable) variables

Declare names which may refer to unchanging values.

Created by sam
15
Snippets: 2

Initialise (imutable) variables

Initialise imutable variables to their value.

Created by sam
17
Snippets: 2

Assign to (mutable) variables

Set mutable variables to a current value.

Created by sam
12
Snippets: 7

Declare (mutable) variables

Declare names which may refer to changing values.

Created by sam
47
Snippets: 2

Pointer dereference

Dereference a pointer, accessing the pointed-at value.

Created by sam
46
Snippets: 2

Pointer assignment

Assign values to pointer variables.

Created by sam
45
Snippets: 2

Pointer declaration

Declare pointer values.

Created by sam
57
Snippets: 1

Declare lazy variables

Declare variables which compute their value when accessed as opposed to when assigned to (strict).

Created by sam
58
Snippets: 2

Access lazy variables

Force the value of a lazy variable to be computed and returned.

Created by sam
14
Snippets: 6

Initialise (mutable) variables

Initialise mutable variables to a starting value.

Created by sam
❮ prev 0 next❯