I have a related question.
(Well, I think it might be related; I’m a novice and everything’s possible.
)
I see that Elixir’s naming conventions discuss the trailing-bang:
A trailing bang (exclamation mark) signifies a function or macro where failure cases raise an exception.
Many functions come in pairs, such as
File.read/1andFile.read!/1.File.read/1will return a success or failure tuple, whereasFile.read!/1will return a plain value or else raise an exception…
So, in a parallel Elixir universe, could Integer.parse not exist and instead we’d have both String.to_integer and String.to_integer!?
EDIT: hmm, maybe that parallel universe would actually be a pain; I overlooked the fact that Integer.parse accounts for remainder_of_binary and String.to_integer doesn’t.


















