Add a note
This commit is contained in:
parent
926631ba8f
commit
bac5761534
@ -221,6 +221,9 @@ impl Pattern {
|
|||||||
unimplemented!()
|
unimplemented!()
|
||||||
},
|
},
|
||||||
Ignored => unimplemented!(),
|
Ignored => unimplemented!(),
|
||||||
|
/* "a constant appearing in a pattern can easily be eliminated by replacing it with a variable
|
||||||
|
* and adding a guard to the equation instead" - Implementation of Functional Programming
|
||||||
|
* Languages Simon Peyton-Jones, p. 58 */
|
||||||
Literal(lit) => match lit {
|
Literal(lit) => match lit {
|
||||||
PatternLiteral::NumPattern { neg, num } => unimplemented!(),
|
PatternLiteral::NumPattern { neg, num } => unimplemented!(),
|
||||||
PatternLiteral::StringPattern(_s) => unimplemented!(),
|
PatternLiteral::StringPattern(_s) => unimplemented!(),
|
||||||
|
Loading…
Reference in New Issue
Block a user