Re:Java is not a safe language
by BeefWellington on Monday June 13, 2022 @10:36AM
(#31726218)
> Javascript,
> APIs often do something similar by passing in an object with optional fields*
That's really not the same as the others though, as it's a convention. That's arguing that passing a Python dict or Namespace to a function is the same as named arguments in the function's definition itself. You can do the same in Java with Dictionary<string,object> if you want.
That's really not the same as the others though, as it's a convention. That's arguing that passing a Python dict or Namespace to a function is the same as named arguments in the function's definition itself. You can do the same in Java with Dictionary<string,object> if you want.