You had me at "Node.js [...] COBOL" https://github.com/IonicaBizau/node-cobol/ …
-
-
Replying to @qntm
But what's going on with those block comments full of COBOL code? How does that even work? https://github.com/IonicaBizau/node-cobol/ …
1 reply 3 retweets 1 like -
Replying to @qntm
Answer: calling toString() on a JavaScript function gets you the ENTIRE function text, including the comments. Then: https://github.com/IonicaBizau/node-cobol/blob/master/lib/index.js#L70 …
4 replies 10 retweets 12 likes -
Replying to @qntm
This is what happens when you have no multiline string syntax, but you do have hilariously powerful introspection tools
1 reply 7 retweets 12 likes -
Replying to @qntm
I thought for sure the craziest idea in the module "node-cobol" would be Node.js or COBOL but here we are
1 reply 6 retweets 11 likes -
Replying to @qntm
JavaScript multiline string syntax: var s = (function(){/* STRING GOES HERE */}).toString().slice(14, -3);
13 replies 183 retweets 161 likes -
Replying to @qntm
Sadly it looks like ECMAScript 6 will have multiline strings, otherwise this could become the most horrifying JavaScript idiom of all time
2 replies 5 retweets 20 likes -
Replying to @qntm
Kind of having a tough time deciding what to call this method, but here, have a polyfill https://gist.github.com/ferno/56996c1bd0c342114ea5 …
1 reply 2 retweets 3 likes -
Replying to @qntm
Don't think there's any convenient syntax to put "*/" in that "multiline string", though.
2 replies 1 retweet 4 likes
I'm fine with all of this
-
-
Replying to @qntm
I'm serious. JavaScript is fine, node-cobol fills a need, multiline strings are a recognised irritation and the suggested solution owns
0 replies 1 retweet 2 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.