kemalcr / kemal

Fast, Effective, Simple Web Framework
https://kemalcr.com
MIT License
3.65k stars 189 forks source link

Why is `halt` a macro? #686

Closed a-alhusaini closed 4 months ago

straight-shoota commented 4 months ago

It calls next to abort the current action, which must be embedded in the parent scope and wouldn't work if halt was a method.

a-alhusaini commented 4 months ago

Thanks!