Skip to content
This repository has been archived by the owner on Dec 29, 2018. It is now read-only.

XMATCH #2

Open
m2ym opened this issue Apr 16, 2012 · 4 comments
Open

XMATCH #2

m2ym opened this issue Apr 16, 2012 · 4 comments

Comments

@m2ym
Copy link
Owner

m2ym commented Apr 16, 2012

No description provided.

@m2ym m2ym closed this as completed Apr 18, 2012
@m2ym m2ym reopened this Apr 21, 2012
@m2ym
Copy link
Owner Author

m2ym commented Apr 21, 2012

We need to consider the following case:

(defstruct btree)
(defstruct (leaf (:include btree))
  value)
(defstruct (node (:include btree))
  left right)
(xmatch (the btree (make-node :left (make-leaf :value 1)
                              :right (make-leaf :value 2)))
  ...)

The problem is that we can't determine the lower bounds of btree should included or excluded. Maybe we will need some extension of type specifier.

@m2ym
Copy link
Owner Author

m2ym commented Apr 25, 2012

We don't need to care about algebraic data types on optima side. Just derive a variant type on the definition side.

@m2ym m2ym closed this as completed Apr 25, 2012
@m2ym m2ym reopened this May 6, 2012
@m2ym
Copy link
Owner Author

m2ym commented May 6, 2012

MULTIPLE-VALUE-XMATCH

@m2ym
Copy link
Owner Author

m2ym commented Oct 8, 2012

Wontfix

@m2ym m2ym closed this as completed Oct 8, 2012
@m2ym m2ym reopened this Feb 11, 2014
@m2ym m2ym removed the wontfix label Feb 12, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant