this post was submitted on 12 Nov 2025
247 points (99.2% liked)

Programmer Humor

27343 readers
842 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] hoppolito@mander.xyz 15 points 4 days ago* (last edited 4 days ago)

That’s a pretty crazy use of Lua if I may say so.

It is possible to craft continue-like logic in lua, however, with (out of all things) goto statements.

For example, I have the following code in my dotfiles:

	for _, lang in pairs(loopvar) do
		if condition then
			goto continue
		end
		<do whatever the loop actually does>
		::continue::
	end

Of course the continue could be called anything. Really felt uncomfortable resorting to this way but it is possible :-)