News for hackers. Stuff that matters.
Re:How to make your C codebase Rusty: rewriting keyboard fir... by discardable_dan on Friday November 22, 2019 @03:11PM (#21609548)
> What’s regular for computers is also more regular for humans.

What does this even mean? Can you define "regular"?

> neither is making a super complex grammar

This isn't about grammatic complexity, it's about the location of a type relative to the associated identifier.

Re:How to make your C codebase Rusty: rewriting keyboard fir... by steveklabnik on Friday November 22, 2019 @07:26PM (#21611519)
Regular has a technical meaning here, that is, Chomsky’s grammar hierarchy. It’s where the “regular” in “regular expression” comes from. That said, I’m using it in an imprecise way here to mean “simpler to process.” (This is because regular languages are simpler to process than say, context-sensitive languages.)

Location of the type is about grammar complexity. Rust’s grammar plays into its type inference capabilities, and the pattern syntax. There’s an underlying uniformity with syntax elsewhere.