Skip to content

Comment on Why a*a*a*a*a*a cannot be optimized to (a*a*a)*(a*a*a)?

Comments

When I first read the headline, I definitely thought that was a regular expression which could be "optimized" to a+. I guess I'm more inclined to read "*" as the Kleene operator than as multiplication...

I'm glad to know that I'm not alone in doing this.

I think you need a font where asterisk is not superscripted. Try Inconsolata.

Me too, but that's probably because of all those regular expressions like 'aa* b*' I had to read at uni :)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.