(no title)
amanvirk | 1 year ago
- Locks you to their own Validator. Nope, Run npm install Zod and you have it working
- Their own Response/Request classes. Isn't it same with Fastify, Express and other frameworks?
- Annotations, Aren't they part of JavaScript?
morbicer|1 year ago
Annotations are not part of Js, they are part of Ts and are a concession to OOP people coming from other languages. It's a personal opinion but I don't like them and I enjoy this opinion is not uncommon because only few libs are riddled with them.
amanvirk|1 year ago
Going to nitpick a little here
Hono docs language says, they wrap the standard Request object that you can access via HonoRequest.raw https://github.com/honojs/hono/blob/main/src/request.ts#L26
Annotations/Decorators are in stage3 of JavaScript. But I agree they are not super common in JS world except TS heavy libs or frameworks. Btw we aren't big fan of them and use them sparsely in models and commands only