How to resolve the algorithm Halt and catch fire step by step in the Nim programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Halt and catch fire step by step in the Nim programming language

Table of Contents

Problem Statement

Create a program that crashes as soon as possible, with as few lines of code as possible. Be smart and don't damage your computer, ok? The code should be syntactically valid. It should be possible to insert [a subset of] your submission into another program, presumably to help debug it, or perhaps for use when an internal corruption has been detected and it would be dangerous and irresponsible to continue.

Let's start with the solution: