Comments (3)
Good catch. An operator is a definition, not an expression. LET Neq(a,b) == a /= b IN Neq(1,2)
is valid because that's an expression. I'll review and see if there's a better way to make that distinction. I'll also move the "Integrating with PlusCal" block higher on the page.
from learntla.
Yeah, I think moving the "Integrating with PlusCal" section higher on the page is the main change that is needed.
from learntla.
if I try to put the operator definition (Neq(a,b) == a /= b ) directly in the "Evaluate Constant Expression" section then I get an error.
I got stuck here as well, the notion of "expression" is still not defined at this point in the tutorial, and I did spend some time trying to run the examples given in the "Operators" section. I guess the fix is not to suggest running the examples in No Behavior Spec
Tip.
Remember, you can use the “No Behavior Spec” option in your TLC model to test various operators and cases.
from learntla.
Related Issues (20)
- Start updating this again HOT 2
- Consider adding a more explicit section on "deadlocks" in TLA+ HOT 3
- Inline interactive/executable TLA+ HOT 1
- Unknown operator: 'account_total' HOT 1
- CHOOSE is arbitrary according to the reference, but should be deterministic? HOT 3
- Issue with Practical TLA+ Repository HOT 1
- "Using the Toolbox" shows both "/=" and "#" for not-equals HOT 1
- Exercise after explanation of "=>" and "<=>" requires use of "<=" HOT 1
- Make the capture variable different from the free variable to make less confusing
- Make a git action so I don't keep forgetting to push the new versions
- Add note that TLC isn't guaranteed to find shortest counter-example HOT 1
- TLA+ Operators section is not explicit HOT 1
- About the with behavior on set containing duplicated elements HOT 2
- Incorrect answer for LargestTwinPair exercise
- Migrate over to Sphinx
- [tla/tuples] `<<2, "a">> \notin chessboard_squares` example fails
- Mention || when first used
- Dining philosophers with 1 diner has Deadlock HOT 1
- Mention that higher-order recursive operators are a bug
- Deployed version not up-to-date with repository HOT 6
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 learntla.