Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update proposal to match new group consensus #293

Merged
merged 75 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
9d382b9
WIP: Added all the matchers.
tabatkins Aug 29, 2023
810f6d9
fixup: [spec] `npm run build`
tabatkins Aug 29, 2023
1123ac9
Update README.md
tabatkins Sep 1, 2023
4c288e2
fixup: [spec] `npm run build`
tabatkins Sep 1, 2023
155274b
Update README.md
tabatkins Sep 1, 2023
d50a21c
Update README.md
tabatkins Sep 1, 2023
df81d2d
Update README.md
tabatkins Sep 1, 2023
41ae686
search/replace all the Symbol.matcher to customMatcher
tabatkins Sep 1, 2023
2f496b2
Add an issue about possible {key?: foo} syntax
tabatkins Sep 1, 2023
25af3e8
Clarify that regex literals just invoke the built-in custom matcher o…
tabatkins Sep 1, 2023
24cf561
Remove issue about reusing existing predicates as extractor functions…
tabatkins Sep 1, 2023
b91ca76
Add issue about void applying to destructuring too.
tabatkins Sep 1, 2023
4894fd9
Add an issue about infinity/nan/undefined.
tabatkins Sep 1, 2023
f808665
Add text about forced parenthisization of combinator patterns.
tabatkins Sep 1, 2023
cec891f
Update README.md
tabatkins Sep 7, 2023
dd40aed
fixup: [spec] `npm run build`
tabatkins Sep 7, 2023
5d9d768
Update README.md
tabatkins Sep 7, 2023
897cd96
Update README.md
tabatkins Sep 7, 2023
4a8b33a
Update README.md
tabatkins Sep 7, 2023
a879acd
Update README.md
tabatkins Sep 7, 2023
606ffb8
Update README.md
tabatkins Sep 7, 2023
d26f2f2
Update README.md
tabatkins Sep 7, 2023
d99f899
Update README.md
tabatkins Sep 7, 2023
5fa5950
Update README.md
tabatkins Sep 8, 2023
d89e53d
fixup: [spec] `npm run build`
tabatkins Sep 8, 2023
dd85e39
Talk about parenthesization more explicitly. Fix bindings for and/not.
tabatkins Sep 8, 2023
c1800c8
update toc
tabatkins Sep 8, 2023
d9de7ad
Add guard patterns, add placeholders for filling in match/is. Add ToC
tabatkins Sep 8, 2023
75ad036
Switch talk about bindings to instead talk about execution order. Def…
tabatkins Sep 18, 2023
c5ccf7c
fix remaining 4-tick code block endings
tabatkins Sep 18, 2023
2b144aa
fix some indents
tabatkins Sep 18, 2023
577908d
fix log description
tabatkins Sep 18, 2023
35dbe86
add Symbol to list of primitive constructors
tabatkins Sep 18, 2023
fd51e31
Talk more about the variable-pattern syntax escape hatch we need.
tabatkins Sep 18, 2023
fd9cead
i guess i pronounce unary weird
tabatkins Sep 18, 2023
5520cd0
fixup: [spec] `npm run build`
tabatkins Sep 18, 2023
a895e12
lean on a Function.prototype custom matcher rather than special behav…
tabatkins Sep 18, 2023
c804d32
Fill in match(), is, and pull examples into appropriate sections. Del…
tabatkins Sep 19, 2023
ba31080
fixup: [spec] `npm run build`
tabatkins Sep 19, 2023
b7175b0
Update README.md
tabatkins Oct 3, 2023
e9b34b8
fixup: [spec] `npm run build`
tabatkins Oct 3, 2023
eda13f7
Update README.md
tabatkins Oct 3, 2023
95b7d58
Update README.md
tabatkins Oct 3, 2023
f38ba14
Update README.md
tabatkins Oct 3, 2023
764d361
Update README.md
tabatkins Oct 3, 2023
68e7914
Update README.md
tabatkins Oct 3, 2023
3075904
Update README.md
tabatkins Oct 3, 2023
b1e21bf
Switch from 'auto-install a matcher if none defined in class{}' to 'F…
tabatkins Oct 9, 2023
2aaa576
fixup: [spec] `npm run build`
tabatkins Oct 9, 2023
323100d
[editorial] tweak example syntax
tabatkins Oct 9, 2023
95ad60e
Just ban string interpolation entirely; only untagged literals withou…
tabatkins Oct 9, 2023
c7f9157
Clarify that the RegExp matcher is on RE.prototype. Also specify the …
tabatkins Oct 9, 2023
26a49ee
Remove the issue about array-likes. Destructuring always uses the ite…
tabatkins Oct 9, 2023
34a35ef
Drop issue about '{key?: pattern}' patterns for now. We can do it in …
tabatkins Oct 9, 2023
cb14fa8
Clarify the 'previously'.
tabatkins Oct 9, 2023
279f965
Remove lingering uses of 'matchable', replace with 'subject'.
tabatkins Oct 9, 2023
72f9915
Insert the remaining lingering semicolons.
tabatkins Oct 9, 2023
723c182
Fix/expand on catch integration
tabatkins Oct 9, 2023
d874200
Add relational patterns to future enhancements.
tabatkins Oct 9, 2023
64aa483
Rewrite chained-match examples a little, per rbuckton feedback
tabatkins Oct 9, 2023
2a6ae7f
Allow +/- on numeric literals and all variable patterns, so we no lon…
tabatkins Mar 18, 2024
e8d36d8
Add the matchType flag to boolean custom matcher, and relax it to tru…
tabatkins Mar 18, 2024
83db348
Remove the instanceof issue. Rephrase the pred-vs-class issue a bit.
tabatkins Mar 18, 2024
a8edf9a
Move Void Pattern back to future enhancements :(
tabatkins Mar 18, 2024
f1dfd43
Make extractors pass the matchType arg, and pull out arglist patterns…
tabatkins Mar 18, 2024
e1ba5ff
Rephrase regex extractors to use the new terminology. Replace the voi…
tabatkins Mar 18, 2024
727a6fc
Ah whoops, champions actually decided on just Array, not 'strict arra…
tabatkins Mar 18, 2024
59467fb
Add a note about the stricter checks in extractors vs customs.
tabatkins Mar 18, 2024
f752c96
Add a note that primitive/varaible patterns don't type-coerce.
tabatkins Mar 18, 2024
671cc71
Allow [] bits in variable patterns.
tabatkins Mar 18, 2024
b8906a8
Add issue calling out that in loops or arglists, the scope is a littl…
tabatkins Mar 18, 2024
cf7d177
Add issue about __proto__ in an object pattern.
tabatkins Mar 18, 2024
a55599e
Add example of pattern matching making it trivial to validate JSON
tabatkins Mar 18, 2024
0e56f46
fixup: [spec] `npm run build`
tabatkins Mar 18, 2024
6513e70
Merge branch 'main' into new-proposal
tabatkins Mar 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading