Repository navigation
Naming *and* notation conventions #3073
Replies: 3 comments 4 replies
|
Eg. 'singleton' container constructors
I personally think that giving up a function name (to clarify: adding something to the namespace and thereby losing/sacrificing a potential name for something else), rather than have it as (optional!) syntax, is a mistake. I especially think so in the cases such as The alternative to pattern synonyms would be to write custom views for each kind of container, so that the See also: |
|
'ASCII vs.Unicode' or: 'prefix vs. mixfix' or 'prefix and mixfix'... Up until now, I've been an enthusiastic advocate for Agda's support for mixfix / symbolic renderings/representations of concepts, and I still think that the library rightly makes good use of such facilities... but part of my encouragement to @jwaldmann for #2691 stems from having some conscience about whether our use of symbols is always... helpful. So I've started to think (with the 'singleton' above as a specimen, and simple, instance of the phenomenon) that we should consider supporting both textual and symbolic names for concepts/definitions. There are principles and pragmatics (esp. wrt UX, but also specifically what additional support/plumbing/infrastructure, eg. dictionaries/glossaries, might be necessary to support such redundant recoding) to consider, so this is a prompt to think/discuss further... |
|
Copied verbatim from: #1632 (comment) Which of the following would be a 'better' addition to infixr 5 _⇒_
_⇒_ : Bool → Bool → Bool
x ⇒ y = if x then y else trueor (more in the spirit of #2691 if not the letter) infixr 5 _implies_
_implies_ : Bool → Bool → Bool
x implies y = if x then y else true
implies-syntax : Bool → Bool → Bool
implies-syntax = _implies_
syntax implies-syntax x y = x ⇒ yA propos which... why are xor-syntax = _xor_
syntax xor-syntax x y = x ⊕ yattached? or even define To which @JacquesCarette replied:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This is a placeholder topic for the time being, prompted by #509 and the appeal to its implied
style-guideconvention, in #3060 .UPDATED title while thinking more about
Relation.Binaryand their horizontal/vertical compositions #3093Data.List.Base.[_]a pattern synonym #3095All reactions