One question we'd need to think about it is whether that increment happens at the beginning of the macro or the end. So if a breaking error happens on the first run, is it 0 or 1?
I personally prefer incrementing at the end, so in your case, it would be 0 because ò would have looped 0 times (it broke on the first run and did not complete it).
Popularly print the input
popularity-contest
Goal
Write a program or function in a language of your choice that takes input and outputs that exact input.
Specifications
Your program/function should output the exact input in any reasonable way.
Your program does not have to end after printin...
Actually, in his comments he says light bending isn't real and no visible curvature can be observed (Actually curvature is softened by refraction, but still curvature can be observed, even on low-altitude flights)
... I just googled for a Ruby problem, found a Stack Overflow question about a related (but not quite identical) problem, thought "hey, this is a neat solution", wanted to upvote it and couldn't because it's my own answer :(
Comment polyglot
From an original idea by Digital Trauma
The challenge
This challenge requires you to write a polyglot which contains a comment in as many languages as possible.
The comment must say This is a polyglot comment.
The program must do nothing at all.
The winner is whoever writes...
Introduction
It was just a normal day, here at your military base. Suddenly, you looked up to see a bomb falling down from the sky! You need to create a program to predict where it will fall, and tell you the location.
Challenge
You will be given a bomb in the form of Start-X Start-Y X-velocit...
Background
The language BrainF*** (or simply BF), is an extremely minimal programming language. We're going to strip it back even further by eliminating IO operations; only the sub-langage defined by the operations +-<>[], henceforth referred to as BF-subset, shall be used. The BF variant consid...
Shortest “Hello World” for common journaled file systems.
Create a valid file system image as small as possible containing a file or a folder labeled “Hello World” with the following constraint:
If the hello world is a regular file, it needs to not be empty.
The file system needs to one of the...