Small brain: copy/paste Medium brain: generics Galaxy brain: macro_rules!() Universe brain: LALR(1) parsers over TokenStream generated from EBNF grammars
-
-
Show this thread
-
Lisp weenies: LET OVER LAMBDA Me: You are like a little baby. Watch thishttps://github.com/bodil/typed-html/blob/master/macros/src/grammar.lalrpop …
Show this thread -
In my defence, coupled with the new proc_macro API it gives REALLY good error messages during macro expansion.
Show this thread -
-
There, I think these are just right now. It's amazing what you can do with proc macros.pic.twitter.com/ZN6wo8myS7
Show this thread -
I was sad when the JSConf EU CfP launched because I've been wanting to submit since forever but I haven't really done any JS in years. Starting to realise maybe I have something topical to talk about after all...
Show this thread
End of conversation
New conversation -
-
-
Also how does this compare to Yew? (Other references although not HTML syntax horrorshow, maud)
-
It's a templating macro, not a web framework. If I get it right, it should be able to plug into Yew.
-
Sorry to be unclear, yes, I meant compared to the html macro in yew
-
It's typed.
-
I assumed the yew one was. Not all that glitters. In that case this is great.
End of conversation
New conversation -
-
-
This is awesome! Does it have support for interpolating variables from Rust?
-
Of course.
End of conversation
New conversation -
-
-
What's going on with the quote marks? Your text portions all seem to have quote marks round them in the macro then the quote marks seem to show up in the DOM - or is that just the way your web inspector displays it?
-
Rust's tokeniser doesn't preserve whitespace between idents, so text nodes need to be string literals. The web inspector renders it that way by coincidence.
End of conversation
New conversation -
-
-
Very cool! I've always wanted to take Askama in this direction at some point, let me know if you want to team up on that.
-
These look like very different things. Also, I don't think you want to go anywhere near these monster macros.
End of conversation
New conversation -
-
-
Does this support arbitrary `data-` attributes?
-
Yes.
-
sweet!
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

This fist punches Nazis