Comments (2)
There's some good feedback here; thanks!
As you've noted, the division of the language guide into multiple files is a little ad-hoc, and some things are difficult to discover if you aren't reading the entire thing. Several of the syntaxes you're asking about are in the Case expressions section of Syntax.md, instead of in Pattern-Matching.md.
PureScript doesn't have an equivalent to F#'s OR patterns; it was discussed in purescript/purescript#542 back in PureScript's infancy, but nothing came of it. Multiple pattern guards separated by commas all must match for that branch to be selected, so the example you gave in PureScript is actually analogous to an F# AND pattern.
from documentation.
@rhendric Thanks a lot for replying!
Thank you for pointing out the syntax section, I guess it could be ok to duplicate that in the pattern matching section.
so the example you gave in PureScript is actually analogous to an F# AND pattern.
Thanks! Good to know that's anAND Pattern
andOR
is not expressable rn 👍
from documentation.
Related Issues (20)
- ←[31m[error] ←[0mExecutable was not found in path: "git"←[0m HOT 2
- Move record syntax from Syntax.md to Record.md
- Add a migration guide for each major release HOT 2
- Row types are poorly explained HOT 3
- Add section about polymorphic number literals to Differences-From-Haskell.md
- Getting started guide code doesn't compile with Spago 0.20.0 HOT 1
- Module Dependencies should be replaced with function dependencies HOT 1
- [Wrong repo] Add an explanation on kind signatures appearing in documentation HOT 2
- Foldable instance defaults can cause CycleInDeclaration error HOT 1
- ScopeConflict documentation cites `id` HOT 6
- Add DeprecatedFFICommonJSModule
- Function or value name characters are only defined via Unicode categories HOT 2
- Purescript Without Node Example Fails HOT 3
- ado HOT 2
- Getting started guide: `import Data.List` fails HOT 1
- Differences from Haskell: Records example - Could not match type Int with Number HOT 2
- Missing / misleading documentation HOT 2
- Evaluation strategy
- Document VTAs
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 documentation.