[Question] Why have you prefixed the name of some functions ?
mneveu-mx opened this issue · 1 comments
Hello,
I have a foolish question.. :)
Why some functions are prefixed (with IO: or Str:, ..) ?
Can you share your experience for this feature ?
For example if we want to print to output with print(), some users (not fluent in bash :)) can think : "I want to print a string for the output console so I will make Str:print() on my code". But the correct syntax is IO:print() ?
The prefix can sometimes be confusing.
Thanks for your feedback !
Maxime
Hi Maxime,
it's an arbitrary choice. I chose the prefix "IO:" to separate input/output functionality from other functions.
Str:print
is as non-standard as IO:out
. For me "Str:" function are string in - string out kind of functions, like Str:lower and Str:trim
github.com/pforret/bashew/blob/master/doc/functions.md
Peter