You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, apart from Terminal.Termplate module, the library exposes Terminal.Text.Color, Terminal.Text.Color.Background, Terminal.Text.Mode, and Terminal.Text.Style. Should those continue be part of public API? On one hand Terminal.Template is a superset of functionality of all these modules, however, they can be convenient for some quick styling when whole Template functionality is an overkill. For example, right now you can say:
Color.red "hello"
Which has same effect as:
Template.(to_string (red (text "hello")))
So the question is, should these shortcuts exist in public API or not?
Right now, apart from
Terminal.Termplate
module, the library exposesTerminal.Text.Color
,Terminal.Text.Color.Background
,Terminal.Text.Mode
, andTerminal.Text.Style
. Should those continue be part of public API? On one handTerminal.Template
is a superset of functionality of all these modules, however, they can be convenient for some quick styling when wholeTemplate
functionality is an overkill. For example, right now you can say:Which has same effect as:
So the question is, should these shortcuts exist in public API or not?
/cc @erikrose @andor44
The text was updated successfully, but these errors were encountered: