Permalink
Browse files

Give up on proper destructuring for now.

  • Loading branch information...
1 parent 715aca0 commit 291e25779b916c1a3a502c30f2ca07805a6e2f40 @txus committed Mar 5, 2014
Showing with 1 addition and 8 deletions.
  1. +1 −1 lib/lambra/syntax/ast.rb
  2. +0 −7 spec/compiler_spec.rb
View
@@ -206,7 +206,7 @@ def match(compiler, failure, g=compiler.g)
class SymbolPattern < Pattern
def match(compiler, failure, g=compiler.g)
# always matches
- g.pop
+ # g.pop
end
def bound
View
@@ -67,13 +67,6 @@
}.should eval_to 99
end
- it 'destructures simple vectors' do
- %q{
- (match [1 2 3]
- ([_ 2 x] x))
- }.should eval_to 3
- end
-
it 'can fail the pattern match' do
proc {
Lambra::Compiler.eval %q{

0 comments on commit 291e257

Please sign in to comment.