serokell / universum

:milky_way: Prelude written in @Serokell
MIT License
176 stars 28 forks source link

`putText` and `putTextLn` #81

Closed vrom911 closed 6 years ago

vrom911 commented 6 years ago

For the moment there is only putText function in universum which behaves like putStrLn. I think it would be convenient to have putText which would be specialized version of putStr and putTextLn — version of putStrLn.

chshersh commented 6 years ago

@vrom911 I agree! This should have been done long ago... But I think there're a lot of usages of putText currently and a lot of code can become broken :disappointed: I don't see how we can perform migration to save old behavior and also have consistent naming. But I think we really should have putText and putTextLn, because current naming is far from perfect :sob:

vrom911 commented 6 years ago

@ChShersh, it's really sad..( Probably we could name the new one as putTextInline then, so there won't be any conflicts? Or any other more suitable alternative?

gromakovsky commented 6 years ago

universum-1.0.0 😉

chshersh commented 6 years ago

@gromakovsky I want #5 be done before releasing universum-1.0.0.. And probably something else before we will announce universum.

chshersh commented 6 years ago

So the solution is:

  1. Rename putText to putTextLn
  2. Add putText whish is equsl to putStr.