jhg03a commented on issue #3304: Golang endpoints should accept "string 
integers"
URL: https://github.com/apache/trafficcontrol/issues/3304#issuecomment-460818996
 
 
   I'm generally an advocate for strong typing.  It prevents problems like the 
number `b`.  That said, API in my opinion are contracts.  Even if we adapt TP 
(which is really just a client) to use strong typing, I don't believe it's fair 
to require all 3rd parties to also adopt strong typing retroactively.  So I 
vote that we embrace strong typing on API versions and routes/methods where 
perl has never existed.  That said if we had a perl endpoint with weak types we 
should downgrade to weak types in Golang.  Also, this doesn't just stop at 
integers.  Perl used weak types for booleans and probably floats too.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to