3 ms·
> I don't understand how some other language would not need to handle all the errors ? Erlang and it's VM doesn't need error handling (edit: like the ones you
by digitalzombie 9y ago
> I don't understand how some other language would not need to handle all the errors ?
Erlang and it's VM doesn't need error handling (edit: like the ones you listed).
You use pattern match and you match for the outcome you want. So every other state is a let it crash and burn cause you don't care. Because of this mentality you don't have to be God and figure out all the possible fail state to Error check.
The VM enable this type of thinking because it's preemptive. And also there are supervisor trees to resent your program state. The error check is in form of monitor and robustness I guess but it's not in the usual form of other popular languages like the ones you listed.
This is why I prefer Erlang over Go in concurrency. The BEAM VM is good. Also no generics.