Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
_ofdw
on Aug 22, 2021
|
parent
|
context
|
favorite
| on:
Pyret Programming Language
Many languages treat the construction
1/3
As a rational type, and do not convert to float unless you cast. Common Lisp comes immediately to mind. Evidently pyret is another.
tromp
on Aug 22, 2021
[–]
Haskell supports rationals with module Data.Ratio, but uses a slightly different syntax: 1 % 3
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: