|
|
|
|
|
by le-manchester
5050 days ago
|
|
Not at all because programming languages like Ruby parameter names don't tell the full story: if you have def find(name)
what kind of type could be name?
String "Steve"??
Symbol :Steve?
Hash {:first => "Steve", :last => "Jobs"} ?? |
|
In addition, I think it's a good practice to get into to try and validate parameters at the top of any method. If the values don't fit your use for them, raise an exception.