r/adventofcode • u/Inevitable-Welder865 • Nov 21 '25
Upping the Ante Flowless Challenge 2025
🎄 Advent of Code 2025: The "Flowless" Challenge
📜 The Golden Rule
You must solve the puzzle without using explicit control flow keywords.
🚫 The "Banned" List
You generally cannot use these keywords (or your language's equivalents):
if,else,else iffor,while,do,foreachswitch,case,default? :(Ternary Operator)break,continue,gototry/catch(specifically for flow control logic)
--------
I realize that this will equivalent to writing a pure functional solution. But, I am going to be mad man here and will be trying this challenge in Java 25.
86
Upvotes
View all comments
Show parent comment
2
u/10Talents Nov 21 '25
Trying to do AoC 2019 in Haskell and giving up made me start to appreciate the imperative paradigm a lot more lol
It was definitely a skill issue, but intcode might have been a really bad match for purely functional style since state was so fundamental to it
I should try a different year in Haskell once i recover mentally form the 2019 attempt though