📜  .t() 长生不老药代码示例

📅  最后修改于: 2022-03-11 14:48:02.034000             🧑  作者: Mango

代码示例1
It's not a property. Basically it's a reference to “string” type which is being used by functions from Elixir's String module. To fully understand it please read more here.
One reason for using String.t() is that Elixir discourages the use of string(). A string() is a "charlist" in Elixir, while String.t() is a UTF-8 encoded binary.