Skip to content

Instantly share code, notes, and snippets.

@samunders-core
Created November 25, 2025 21:01
Show Gist options
  • Select an option

  • Save samunders-core/7543b3c23af2d6883a9c9bbce1704741 to your computer and use it in GitHub Desktop.

Select an option

Save samunders-core/7543b3c23af2d6883a9c9bbce1704741 to your computer and use it in GitHub Desktop.
Un(finished + usuall) thought vanderings on programming language without both null and without optional types
{
"false bool value": false,
"true bool value": "anything other than literal 'false' (literal 'true' does not exist)",
"absent optional value": [],
"present optional value, i.e. bool": [false],
"arrays are": [
"objects with positive numeric keys",
"empty object equals empty array",
"numbers are arrays of bools"
],
"object": [
"keys are always sorted",
"numbers are arrays of booleans"
],
"total ordering": "is defined (any value can be compared to any other value and result is stable)",
"equality": [
"a",
["a"],
{"0x0000000000000001": "a"},
[false, "true", false, "true", false, false, false, "true"]
],
"immutabiliy": "everything and all the way"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment