2 ms·
> 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 gramma
by discardable_dan 7y ago
> 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.
- steveklabnik 7y agoRegular 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.
- deleted 7y ago[deleted]