where to buy dapoxetine in canada
Sandbox / Hehe
[ Edit ]
Back to Snip <-- Previous Change | Next Change -->
Diff Summary | |||||
---|---|---|---|---|---|
Title | this regard, symobls | side <a href="http: | |||
Date | 2015-02-17 15:05:37 | 2015-02-17 15:41:40 | |||
Editor | Anonymous | Anonymous | |||
Edit | Edit this version | Edit this version | |||
Tags |
2015-02-17 15:05:37 by Anonymous / Edit this version | 2015-02-17 15:41:40 by Anonymous / Edit this version | ||||
---|---|---|---|---|---|
t | 1 | this regard, symobls could be seen as top level | t | 1 | side <a href="http://cialispr.com">cheapest ciali |
> | enums. However, the advantage of putting related c | > | s 25mg</a> treatment | ||
> | onstants inside a class is that it adds semantics | ||||
> | to your application. The constants can appear logi | ||||
> | cally grouped instead of floating in the air on th | ||||
> | eir own. Of course, I'm not saying that these cust | ||||
> | om enums should replace symobls. I just find it us | ||||
> | eful to group things that are related together.@Ba | ||||
> | daud,As you can see in my exemple, I don't create | ||||
> | any instance of class Color. I only work with the | ||||
> | object Color, which is an instance of class Class. | ||||
> | Also, you'll note that i don't write Color.BLUE b | ||||
> | ut Color::BLUE, which triggers the const_missing m | ||||
> | ethod. It would be equivalent of doing : Color.con | ||||
> | st_missing(:BLUE) but there won't be any point to | ||||
> | access it that way! Finally, I don't quite underst | ||||
> | and your claim about type safety. This was a pract | ||||
> | ical example illustrating how to create an enum-li | ||||
> | ke class in ruby. If for some reason Color::BLUE a | ||||
> | nd Chess::KING would be equal then so what? Those | ||||
> | are integers values after all. The purpose (in th | ||||
> | is example at least) was to use an enum as a set o | ||||
> | f constants logically grouped together. (Like if | ||||
> | Color was a namespace) |