You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I wanted to check the precedence level of the == operator, and I was surprised to see this output:
Cryptol> :? ==
primitive type (==) : # -> # -> Prop
Precedence 20, does not associate.
Assert that two numeric types are equal.
~~~ * ~~~
(==) : {a} (Cmp a) => a -> a -> Bit
Precedence 20, does not associate.
Compares any two values of the same type for equality.
I was initially confused about the meaning of ~~~ * ~~~, because I was looking up information about infix operators, and ~~~ and * also look like infix operators. After a moment I realized that they were intended to be a purely decorative visual separator.
We should replace this string with something less fancy; we're not typesetting a novel here :) Considering that this separator will be seen quite infrequently (only when using :? on an identifier that has both type-level and value-level definitions with documentation) we should have something that is undistracting even for someone seeing it for the first time. Perhaps a line of hyphens?
The text was updated successfully, but these errors were encountered:
Maybe we can add Chapters! I don't have a strong opinion on what we use, but I think having some separator is nice---I added the fancy line because in the previous version it was hard see where the different sections ended.
Another UI design choice I wondered about but couldn't come to a decision was if we should have a separator, or some sort of leading marker on each section. I went with the separator thinking that having multiple sections is relatively rare, so I thought maybe the extra noise of a leading marker would be distracting when there is only one section.
Today I wanted to check the precedence level of the
==
operator, and I was surprised to see this output:I was initially confused about the meaning of
~~~ * ~~~
, because I was looking up information about infix operators, and~~~
and*
also look like infix operators. After a moment I realized that they were intended to be a purely decorative visual separator.We should replace this string with something less fancy; we're not typesetting a novel here :) Considering that this separator will be seen quite infrequently (only when using
:?
on an identifier that has both type-level and value-level definitions with documentation) we should have something that is undistracting even for someone seeing it for the first time. Perhaps a line of hyphens?The text was updated successfully, but these errors were encountered: