Earlier quoted context omitted.
I'm not a fan of using -> like CoffeeScript does. It doesn't seem to mean function-body / algorithm-to-do-the-thing to me. That operator makes sense for pointers or for function return value type expressions.
I think that's just because you are used to see it used that way. And it's not like CoffeeScript invented this. Haskell does it: \x -> x + 1 OCaml does it: fun (x : int) -> x + 1 It is very common in functional languages to use -> both for function bodies and return types.
The Earl Grey programming language
131–137 of 137 posts
Re: The Earl Grey programming language
#132Earlier quoted context omitted.
But see, being used to hyphens in variable names, I must tell you I can't figure out which one I find easier to read. On one hand, the presence of hyphens and subtraction is a tad confusing, but on the other, I find "balance-sheet" to be generally nicer to read than "balanceSheet", so it feels like a tie to me. Then, on the other hand, you have things like "xs.for-each(x -> x + 1)" vs "xs.forEach(x -> x + 1)", where…
> I find "balance-sheet" to be generally nicer to read than "balanceSheet" Me too, and I've wondered if it's because it's activating the same part of my brain that gets aggravated when people decide to use capitals on seemingly random words within the sentence.
Also, it feels morally wrong that the first word typically doesn't get the capitalization (and often languages ask/require programmers to follow some arbitrary first letter capitalization rules...). Yes, that's right, it's about ethics in programming language design.
Re: The Earl Grey programming language
#133Earlier quoted context omitted.
Made correctly, earl grey (really any black tea) needs some milk fat to neutralize the tannic acid or it could turn your stomach.
I googled this because I find it interesting, but black tea does not contain tannic acid. It contains tannins, but of a completely different type (antioxydants which actually seem to be healthy). I couldn't find anything definitive on whether adding milk is a good idea or not. Maybe it helps for some people.
Re: The Earl Grey programming language
#134Re: The Earl Grey programming language
#135Now add an absolutely vital library called Milk and watch tea lovers everywhere shudder.
Re: The Earl Grey programming language
#136Re: The Earl Grey programming language
#137Earlier quoted context omitted.
This is also what I thought. I was disappointed to see no TNG references on the page.
I like Earl Grey tea, but I don't watch Star Trek, so it didn't even occur to me. Sorry about that :( On the other hand I have to admit I like the idea of calling utilities Picard or Engage, they have a nice ring to them. Hmm.