by ignitionmonkey · 4y ago · 0 comments
"Deposit 100 dollars in my account." is a sentence, and that's doable in most languages. It just depends on how high you want to go with it. Functions are ubiquitous and powerful:
deposit($(100), in(my_account))
And if we remove brackets like a lot of languages (I prefer not to)... deposit $ 100, in my_account
Functions remove the need to tie actions to objects too. We can rely on types/interfaces. deposit($(100), in(the_river))
We could go further, again, depends where you want to stop. Expressiveness isn't really limited by most languages.hey OBJECT !, I want you to ACTION with ARGUMENTS
so ... "hey account!, I want you to make a deposit with $100"
account deposit: $100
was the message from the bank teller to the account, not from you :) bankTeller deposit: (100 dollars) in: myAccount.