Skip to content

Commit

Permalink
I think I nailed the issue with page generation
Browse files Browse the repository at this point in the history
  • Loading branch information
dams committed Sep 16, 2013
1 parent f01ecf8 commit a386155
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions _posts/2013-09-16-p5-mop-a-gentle-introduction.markdown
Expand Up @@ -399,12 +399,12 @@ Just an idea, but maybe we could have `$!public_attribute` and

## why `is` ? we already have `has` !

This one thing is bothering me a lot: why do we have to use the word `is`
when declaring an attribute? The attribute declaration starts with `has`. So
with `is`, that makes it *two* _verbs_ for *one* line of code. For me it's too
much. in Moo*, the `is` was just one property. we had `default`, `lazy`, etc.
Now, `is` is just a seperator between the name and the 'traits'. In my opinion,
it's redundant.
This one thing is bothering me a lot: why do we have to use the word `is` when
declaring an attribute? The attribute declaration starts with `has`. So with
`is`, that makes it *two* _verbs_ for *one* line of code. For me it's too much.
in Moo\* modules, the `is` was just one property. We had `default`, `lazy`,
etc. Now, `is` is just a seperator between the name and the 'traits'. In my
opinion, it's redundant.

Also, among the new keywords added by p5-mop, we have only _nouns_ (`class`,
`role`, `method`). Only one _verb_, `has`.
Expand Down

0 comments on commit a386155

Please sign in to comment.