On Mon, Oct 14, 2019, 08:49 Samuel Teixeira Santos <arcano...@gmail.com>
wrote:

> when you say when: "what this object converted *to a string means in my
> domain"* - what really means, specially about when you say *'domain'?*
>
> Could you give some example for this?
>
> Thanks
>

A good example might be PLU codes [1] on produce in North America. They're
4 or 5 digits, and employees of a grocery store usually know them by heart
(they're in the "employee of a grocery store" domain). Customers, however,
are interested in knowing what the vegetable or fruit is, not the code.

So, depending on the application domain, #asString might print the code
(for grocery store employees) or the name of the item (for customers).

Delving deeper, we find these codes even contain info about whether produce
is GMO, organic, etc. which could also be used by #asString depending on
requirements.

[1]: http://innvista.com/health/foods/plu-codes-alphabetical-order/

>

Reply via email to