3 ms·
<div _="on click transition opacity to 0 then remove me"> My immediate reaction was "Oh, web Cobol". Edit: By the downvotes, I'm guessing people think it was
by tyingq 6y ago
<div _="on click transition opacity to 0 then remove me">
My immediate reaction was "Oh, web Cobol".
Edit: By the downvotes, I'm guessing people think it was a lazy attempt to poke fun. It's not though :) Cobol has a very repeated VERB->NOUN->ADVERB->ETC sentence style pattern that's very similar to what's in that snippet of _hyperscript above. Like:
DIVIDE NUMA BY NUMB GIVING RES-DIV
PERFORM VARYING LoopCount FROM 1 BY 1 UNTIL LoopCount GREATER THAN 4
And so on...
- lhjn 6y agoI had the exact same reaction. It's a very striking resemblance. Don't mean to detract from the project though, not my piece of cake but could be handy
- deniz-a 6y agoThankfully, we have arithmetic expressions :] Every command has an initial verb, which makes parsing easier (both by computer, and hopefully by people). Just for fun, here are your examples in hyperscript: get numA / numB then put it into resDiv -- or simply set resDiv to numA / numB repeat 5 times index loopCount log loopCount end
- tyingq 6y agoAh, very cool. Thanks for sharing the hyperscript examples.