conjure icon indicating copy to clipboard operation
conjure copied to clipboard

Allow in (or :?) for all quantification

Open ChrisJefferson opened this issue 5 years ago • 2 comments

At the moment we write forAll x : T, for types, but forAll x in S, for sets. I think it would be easier if we could use 'in' for both.

The other option we be to push all tutorials towards matrix comprehension?

ChrisJefferson avatar Oct 24 '19 21:10 ChrisJefferson

Same problem with comprehensions. <- works for expressions, : for domains there.

ozgurakgun avatar Oct 24 '19 21:10 ozgurakgun

It would seem to make sense to treat x in T as a synonym for x : T when T is a type, and [f(x) | x <- D] as a synonym for [f(x) | x : D] when D is a domain?

ott2 avatar Nov 06 '19 12:11 ott2

I'll close this as won't fix for now, we can think about this in the future again if we get to rethinking the language...

ozgurakgun avatar Feb 20 '23 12:02 ozgurakgun