https://www.undeadly.org/cgi?action=article;sid=20260115203619 #Virtualization #TechNews #CodeWizardry #HackerNews #ngated
Macros are required to do some very helpful things in Rust, but this isn’t an article about any of those things. I became enamored with macros many years ago when I read Practical Common Lisp and saw the implementation of a SQL DSL that works with built in data structures. The whole implementation took less than a screen of code and absolutely blew away my expectations of what it took to create DSLs.
Just squashed a nasty merge conflict with GitKraken AI — surgical, smart, and done in seconds ⚔️
💥 500K weekly AI tokens from the Advanced upgrade = pure commit wizardry 🔮
This isn’t just AI — it’s next-gen Git power ⚡️
What does this print? x = 1 x --> 0 Think it through, then try it in a browser console! Answer and explanation in the dropdown. Show answer It prints 1. wait wtf At the beginning of a line (and only at the beginning of a line), --> starts a comment. The JavaScript is parsed as x=1; x; // 0 The browser then displays the value of the last expression, which of course is 1.