disco-lang / disco

Functional teaching language for use in a discrete mathematics course
Other
164 stars 23 forks source link

Make `min` and `max` prefix functions instead of infix operators #383

Closed byorgey closed 6 months ago

byorgey commented 6 months ago

Closes #262.

min and max really "want" to be infix operators (they are commutative and associative) but this goes against the stated principles of Disco to be as close as possible to common mathematical practice. In the future we could think about re-adding infix versions with Unicode names.