Programming the Future, Litterally, in Softanza
Programming traditionally forces immediate execution - each action happens as soon as you call it. Future Actions let you plan a sequence first, then execute it all at once with natural timing control.
par Mansour Ayouni · dans le dépôt depuis le 2025-09-16 · essai de paradigme · sans domaine de l'Atlas
Cet article est écrit en anglais, comme la bibliothèque.
Classic vs Future Actions
Classic approach - immediate execution:
oStr = new stzString("ringo")
oStr.Uppercase() # Executes now: "RINGO"
oStr.Remove("o") # Executes now: "HARO"
? oStr.Content() # Shows: "HARO"illustration
Future actions - deferred execution:
? BeforeQ("ringo").IsUppercasedFQ().RemoveFFQ("o").Content()
#--> "HARO"illustration
The Future Syntax
The power lies in specific suffixes that control when actions happen and how they chain together:
F- "Plan this action"FQ- "Plan this action and continue chaining"FF- "Plan this action and execute all now"FFQ- "Plan, execute all, and continue chaining"
Flow control:
- BeforeQ(value) - Start with this value
- AndThenQ() - Sequence connector
- ReturnIt() - Get the final result
How It Works
The fluent syntax is built on basic queue functions:
# What you write:
BeforeQ("haro").UppercaseFQ().RemoveFFQ("g")
# What happens:
# 1. Queue the Uppercase action
# 2. Queue the Remove action
# 3. Execute all actions on "haro"
# 4. Return result: "RIN"illustration
Examples:
? BeforeQ("ringo").IsUppercasedFQ().
RemoveFFQ("o").
AndThenQ().ReturnIt()
#--> HARO
? BeforeQ("ringo").IsUppercasedFQ().AndThenQ().SpacifiedFQ().
RemoveFFQ(" o").
BoundItWithQ([ "<< ", :and = " >>" ]).
AndFinallyQ().ReturnIt()
#--> << H A R O O >>
? BeforeQ('').UppercasingFQ("ringo").
RemoveFFQ("o").FromItQ().
SpacifyItQ().
AndThenQ().ReturnIt()
#--> H A R Oillustration
Why Future Actions?
Future Actions let you express programming intentions naturally - like planning a sequence of steps before executing them. The code reads like human thought: "Before working with 'ringo', I plan to uppercase it, then remove the 'o'."
This transforms programming from mechanical commands into expressive, story-like sequences that execute with precision.
Citer
Mansour Ayouni. « Programming the Future, Litterally, in Softanza ». Softanza narrations, 2025. https://mayouni.github.io/stzsite/fr/narrations/stz-fututure-actions.html
Non exécuté : son code touche aux fichiers, au réseau, à l'horloge ou au hasard. L'article est publié tel qu'il est écrit ; ses blocs sont des illustrations. Le code des articles est du code Haro. Là où un article a été écrit avant que la langue prenne son nom actuel, le nom a été changé et rien d'autre. Genre, domaine et série lus dans le nom du fichier, année tirée du premier commit : dérivés, jusqu'à ce que l'article porte son propre en-tête. Le fichier sur GitHub(s'ouvre dans un nouvel onglet)

