Earlier 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 had actually noticed that I didn't feel great after drinking earl grey without milk, but never realized why. Thanks for mentioning this!
The Earl Grey programming language
121–130 of 137 posts
Re: The Earl Grey programming language
#122Earlier quoted context omitted.
I haven't seen the feature elsewhere. The second example looks better to me (syntax highlighting helps) and reduces redundancy and indent, but I guess views may vary on this. Good to know!
If your goal is to reduce redundancy than I think a "lambda-case" syntax might be a better fit. As a bonus it also lets you use this feature on anonymous functions! https://downloads.haskell.org/~ghc/latest/docs/html/users_gu... http://stackoverflow.com/questions/1604270/what-is-the-diffe...
Personally I much prefer the way I do it, because it is more powerful, works in more places, and requires no new syntactic forms.
Re: The Earl Grey programming language
#123Now add an absolutely vital library called Milk and watch tea lovers everywhere shudder.
Made correctly, earl grey (really any black tea) needs some milk fat to neutralize the tannic acid or it could turn your stomach.
Re: The Earl Grey programming language
#124Am I the only one childish enough to ask for the language to be called Earl Grey Hot in honor of Star Trek?
This is also what I thought. I was disappointed to see no TNG references on the page.
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.
Re: The Earl Grey programming language
#125is it just me, tiring quickly of this syntax?
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.
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.Re: The Earl Grey programming language
#126Earlier quoted context omitted.
Out of curiosity, what's that reason?
Because a hyphen is also the subtraction operator. It's extremely weird if a+b is valid syntax but a-b is not. This language may require whitespace around all operators, though. It's not clear to me.
Re: The Earl Grey programming language
#127Now add an absolutely vital library called Milk and watch tea lovers everywhere shudder.
Re: The Earl Grey programming language
#128Re: The Earl Grey programming language
#129I'm aware there are many people who don't see the value in creating "yet another compiles to JS language," or those who view them as simply "syntax sugar," but I for one very much appreciate the work done by yourself and others on similar projects.