rs / xid

xid is a globally unique id generator thought for the web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove panics

p4tin opened this issue · comments

As a library that is used by many other application perhaps a "panic" is not the correct way to handle errors as that would cause the user app to die when that said app should be able to choose what to do? The "New()" function should then return (ID, error)

Breaking Change

A panic should never happen in reality, and if it ever happen it would be during program launch, not randomly at runtime.