What does "s" mean in the name of the :sprint
GHCi command?
This is the description from the official documentation, to give you some context:
sprint : Prints a value without forcing its evaluation. :sprint is similar to :print, with the difference that unevaluated subterms are not bound to new variables, they are simply denoted by ‘_’.
As you have seen, the description of :sprint
in the GHC User's Guide says nothing on the matter. According to the :sprint
entry in Julie Moronuki and Chris Martin's typeclasses.com...
The
s
stands for “simple,” the idea being that:sprint
is in some sense a simplified version of the:sprint
does less work.
could it be 's' for strictness ?
Presumably not, as much of the point of :sprint
and :print
is that they are, in a sense, lazier than the print
function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With