ocaml / dune

A composable build system for OCaml.
https://dune.build/
MIT License
1.63k stars 401 forks source link

Allow comparison of blang values in blang itself #5612

Open rgrinberg opened 2 years ago

rgrinberg commented 2 years ago

Sounds good. I think that we should also try to lift the restriction that <op> operands are <template> and make it so that expr ::= (<op> <expr> <expr>) works.

@emillon do we allow things like (> true false)?

emillon commented 2 years ago

I think that the current semantics don't have a first-class notion of booleans. enabled_if just wants a string that looks like one. So if that's true, (> true false) should be accepted.