3 ms·
I think that this is my new favourite esolang. Type-level naturals (http://www.haskell.org/haskellwiki/Type_arithmetic http://www.haskell.org/haskellwiki/Type_
by JadeNB 12y ago
I think that this is my new favourite esolang. Type-level naturals (http://www.haskell.org/haskellwiki/Type_arithmetic http://www.haskell.org/haskellwiki/Type_arithmetic), eat your heart out! What was your inspiration for making this?
By the way, sorry for a "useless use of cat" (http://en.wikipedia.org/wiki/Cat_%28Unix%29#Useless_use_of_cat http://en.wikipedia.org/wiki/Cat_%28Unix%29#Useless_use_of_c...) nit-pick, but note that
$ cat examples/fac.typo | typo
should probably be
$ typo < examples/fac.typo
- seliopou 12y agoThanks! Typo made it HN last summer, so here's a response to your question on motivation[0]. Also, the 'cat' thing has come up before. Here's my response to that[1] as well. But now that I'm rereading my response it doesn't seem clear what I mean. The README for the language demonstrates how you can use shell grouping as a poor man's module system. When you do that, you have to use 'cat' on single files in certain situations. So I stuck with 'cat' for the simple example so it's consistent with the more complex examples. If you take a look at the typo script[2] that wraps the compiler, you'll see that I know when to use redirects and when to use 'cat'. But regardless of all that, I think most modern machines can spare an extra process. [0]: https://news.ycombinator.com/item?id=6176340 https://news.ycombinator.com/item?id=6176340 [1]: https://github.com/seliopou/typo/pull/4 https://github.com/seliopou/typo/pull/4 [2]: https://github.com/seliopou/typo/blob/cc64ec38603a50c6543b3834d47b4ff0431c2b3e/typo#L14 https://github.com/seliopou/typo/blob/cc64ec38603a50c6543b38...
- JadeNB 12y agoThanks for the helpful reply. By the way, I didn't mean to suggest that you didn't know when to use `cat` vs. re-directs; I just thought it might have been an oversight. I'm sorry if it came across as rude.