-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
say vs print vs show #204
Comments
|
Thanks. |
The name "show" is probably derived from Haskell, where it has the same functionality of just returning a string representation. |
Yeah, Ideally I think |
Rust has |
|
If Maybe For pretty-print trait, maybe |
That's very cute. |
The trouble with I don’t think there should be a general trait for “converting” things beyond casting (thoughts: #181), since different applications have different expectations for conversions. I really like the compositionality of There is I do like |
Had a thought about this. Perhaps a bad one, but nonetheless it is an idea. Instead of |
Personaly i am using "lf" since quite a lot of years. It works in OCaml: Better in lisp/scheme: And best in concatenative style: lf does print ascii character lf or linefeed, which is chr 10 / 0a. Best Regards |
Could you explain the the difference between
say
,print
andshow
?The text was updated successfully, but these errors were encountered: