|
|
|
|
|
by projektfu
1135 days ago
|
|
This is the Smalltalkiness of Ruby. Why have a separate place to put a function that operates only on strings when you can put it in String? Of course, in Smalltalk you might have #trim defined by two different packages and they might conflict. Then what? Maybe you have to manage that complexity. However, it's not much different from having conflicting functions in the global namespace in C, but actually easier to resolve in a given situation. |
|