Live data from Hacker News

The Earl Grey programming language

breuleux.github.io

121–130 of 137 posts

Re: The Earl Grey programming language

#121

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!

True story: One day I was out of milk, but figured it wouldn't be too bad to go without and have my tea anyway. Dropped the kids off at school, lost my stomach in the parking lot. 8:00am, lookin' classy at the private school.

Re: The Earl Grey programming language

#122
post #112

Earlier 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...

There already is a "lambda-case" syntax. "fact(match) = ..." is sugar for "fact = match -> ...". If one works, then so does the other.

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

#123
post #96

Now 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.

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

#124
post #47

Am 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.

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.

Re: The Earl Grey programming language

#125

is 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.

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.

Re: The Earl Grey programming language

#126
post #51

Earlier 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.

Ah that makes total sense, thanks!

Re: The Earl Grey programming language

#129
As someone who currently uses LiveScript professionally, I look forward to trying out Earl Grey. At first glance it looks very promising.

I'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.

Re: The Earl Grey programming language

#130

Earlier quoted context omitted.

My ring finger does. Not sure which is more common.

Well, in standard touch typing, the pinky handles the hyphen.

It does? I never learned it that way. Using the ring finger is much more ergonomic for me than using the pinky finger.
Post reply on HN