Re:Rust is surprisingly expressive
by xixixao on Saturday December 28, 2013 @03:40PM
(#6976448)
You're saying `code` but what you really mean is "Java" or your favorite OOP paradigm. If someone comes up with different rules for what `2.days()` means then they are valid rules (and we can discuss whether they provide benefits to the other ones).
[ Parent
| on HN ]
Re:Rust is surprisingly expressive
by kybernetikos on Saturday December 28, 2013 @03:50PM
(#6976498)
Not every nonsense 'rule' that someone comes up with is 'valid'. Rules need to be consistent.
And yes, I was talking OOP since we were talking about ruby. Functional or logic programs also have their own rules that tell you how to understand them. If you want to create good programs you shouldn't mess with those basic rules in order to make the code look more like something it actually isn't.