Comparisment

   - compare programming languages by example

5

Boolean literals

The syntax for literal booleans.

Created by sam

Add a new answer

Either add an answer for a new language or add an alternative solution.
A description is only necessary when the code is not suitably 'obvious' or to justify an alternative approach.

Haskell

t :: Bool
t = True

f :: Bool
f = False

Created by: sam

Edit this answer

Edit the language, code and description simultaneously.

Python

t = True

f = False

Created by: sam

Edit this answer

Edit the language, code and description simultaneously.