Is it possible to use pattern matching over specified functions directly or with some exploits that don't involve specifying a type for every function I need?
Just to explain things better suppose I have a type like
type BBoolOp = (bool->bool->bool)*term*term
and suppose that the bool->bool->bool
functions are some quite simple like just (&&)
(||)
..
is it possible to do different things depending on the function that is specified like:
match bop with
(||) -> do something
| (&&) -> do something else
This shouldn't be possible because functions can't be compared but maybe an exploit exists to do what I'm trying to do :)
Thanks in advance