5 ms·
> why not just mimic JSX Definitely considered that. Might be worth revisiting. > The big missing piece to me here is composability You zeroed in on the righ
by paulsmith 4y ago
> why not just mimic JSX
Definitely considered that. Might be worth revisiting.
> The big missing piece to me here is composability
You zeroed in on the right things ;^) I have a draft note to myself about pages-as-components. I have some ideas (basically, mimic ASP.net Razor components at the moment). Having a compiler with full control of the page makes this easier to figure out.
> without having to backtrack, since that last period is ambiguous in this grammar.
It doesn't backtrack, it just looksahead at the next token: https://github.com/adhocteam/pushup/blob/main/main.go#L3692 https://github.com/adhocteam/pushup/blob/main/main.go#L3692