Comments (3)
Well this is an extreme example of a 'function', containing 'if' and 'is'.
It's more like a pattern to be matched. You are right that it would help to mark the 'loose' parts of the pattern.
However ideally the matching+marshalling engine should also match:
determine whether Peter is currently on Skype >> check if person is online on Skype
This would be the very long-term goal. For now:
Usually parameters are all 'nouns' in a function declaration:
to blubber some foo in bar: print foo
from english-script.
To clarify: a variable/object matches a parameter, if it is of matching type:
to notify a person:
send 'hi' to person
Peter is a person
notify Peter // ok ... (if 'send' is defined somewhere ...)
foo is a bug
notify foo // error/question: how to notify bugs? Is foo a person? Are bugs persons?
from english-script.
To finally address your question: Skype is a singleton, so it's not really a parameter, only there for matching. Distinction between singletons / parameters : Upper case? Context? Quotes?
I'd say context.
Actually they don't need extra treatment:
Rule: If a parameter is missing but available in the context, take it.
So
to eat a meal: say 'yummy ' + meal
a hamburger is a meal
x=new hamburger
eat ! // x consumed 'yummy hamburger'
from english-script.
Related Issues (8)
- How will EnglishScript be translated into other programming languages? HOT 11
- Inform 7 HOT 1
- EnglishScript should be translated into the π programming language
- Installing english-script on Windows
- Requires COBOL integration HOT 1
- Issue while launching just after building from source with ruby HOT 1
- GRAMMAR
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from english-script.