5 ms·
I guess it's my day to represent the Smug Lisp Weenie† faction of Hacker News? † https://wiki.c2.com/?SmugLispWeenie https://wiki.c2.com/?SmugLispWeenie This
by samatman 5y ago
I guess it's my day to represent the Smug Lisp Weenie† faction of Hacker News?
† https://wiki.c2.com/?SmugLispWeenie https://wiki.c2.com/?SmugLispWeenie
This is what happens when you don't have user extensible syntax, you end up petitioning committees for... another way to write a threading macro.
If you want macros so badly have you considered, wait for it, s-expressions?
- ReleaseCandidat 5y ago> If you want macros so badly have you considered, wait for it, s-expressions? Actually the only acceptable way to define a 'pipe' (aka. reverse function application) is something like x YOUR_SYMBOL_OF_CHOICE f = f x Every language that needs more than this is already seriously flawed :D
- samatman 5y agoOk so I have one counteroffer: (-> _ f x) Deal?
- ReleaseCandidat 5y agoOk, because it's weekend!
- cageface 5y agoThis is true. On the minus side writing tooling for an s-expr language is much much harder. Being able to reliably refactor my typescript code with a key press is a big plus.
- samatman 5y agoIt's not supposed to be! https://shaunlebron.github.io/parinfer/ https://shaunlebron.github.io/parinfer/ A better world is possible!
- cageface 5y agoThis looks nice but doesn’t seem to come close to the kind of structural understanding of code that you get with statically typed languages with a fixed syntax.
- Zababa 5y ago> This is what happens when you don't have user extensible syntax, you end up petitioning committees for... another way to write a threading macro. There is user extensible syntax, JS users have been using macros for years through Babel. Here's the plugin for the different pipes: https://babeljs.io/docs/en/babel-plugin-proposal-pipeline-operator https://babeljs.io/docs/en/babel-plugin-proposal-pipeline-op...