adamgibbons / ics

iCalendar (ics) file generator for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Callbacks and errors

BaptisteMartinet opened this issue · comments

Why does the createEvent/createEvents functions take callbacks as argument? wouldn't it be easier if the function returned the string directly?
Also why does the function not throw errors instead of returning an error object? isn´t it the purpose of thowing errors?

These were design decisions made early on that worked for my purposes.