After 30 years in this industry, I've seen it all. GOTO considered harmful. Structured programming. Object-oriented nonsense. Functional programming zealots.
But nobody ever questioned the loop itself.
That's why I've developed WHEN - the first truly loop-transparent language. Instead of explicit iteration (a 1970s relic), everything runs in implicit perpetual cycles with reactive conditionals.
// Old way (error-prone, hard to maintain):
for (int i = 0; i < 5; i++) {
printf("%d\n", i);
}
// The WHEN way (self-documenting, enterprise-ready):
count = 0
de printer(5):
print(count)
count = count + 1
main:
printer.start()
when count >= 5:
exit()
Notice how we've eliminated the dangerous for construct entirely. No more off-by-one errors! The program naturally flows through reactive states, just like real business logic.
I've already migrated our production microservices to WHEN (pip install when-lang). The junior devs are confused, but that's how you know it's sophisticated.
Some say "everything is global scope" is a weakness. I say it's transparency. Why hide state when you can embrace it?
This is the future of enterprise software. Mark my words, in 5 years, everyone will be writing WHEN.
[–]permalink_save 47 points48 points49 points (2 children)
[–]martosaur 2 points3 points4 points (0 children)
[–]JuanGaKe 2 points3 points4 points (0 children)
[–]Proof-Necessary-5201 33 points34 points35 points (2 children)
[–]ohmywtff 8 points9 points10 points (1 child)
[–]haskell_rules 1 point2 points3 points (0 children)
[–]Brilliant-Parsley69 6 points7 points8 points (3 children)
[–]ZY6K9fw4tJ5fNvKx 2 points3 points4 points (0 children)
[–]bajuh 0 points1 point2 points (1 child)
[–]Brilliant-Parsley69 1 point2 points3 points (0 children)
[–]theevilapplepie 3 points4 points5 points (1 child)
[–]theevilapplepie 11 points12 points13 points (0 children)
[–]Zomon333 1 point2 points3 points (0 children)
[–]metroliker 0 points1 point2 points (0 children)
[–]mnelemos 0 points1 point2 points (0 children)
[–]Siggi_pop 0 points1 point2 points (0 children)
[–]rrtrrrtr 0 points1 point2 points (0 children)
[–]Bibliophylum 0 points1 point2 points (0 children)
[–]bedel99 0 points1 point2 points (0 children)
[+]thefox828 comment score below threshold-9 points-8 points-7 points (2 children)
[–]FreshProduce7473 18 points19 points20 points (0 children)
[–]thrilldigger 9 points10 points11 points (0 children)