Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meaning of"A type-safe HTTP client for Android and Java" in Retrofit 2.0

Tags:

retrofit2

Can someone please explain meaning of Retrofit's tagline :

A type-safe HTTP client for Android and Java

like image 699
charany1 Avatar asked Mar 24 '16 21:03

charany1


1 Answers

Type safety is the extent to which a programming language discourages or prevents type errors. A type error is erroneous or undesirable program behaviour caused by a discrepancy between differing data types for the program's constants, variables, and methods (functions), e.g., treating an integer (int) as a floating-point number (float). This is common in statically typed languages such as Java and C

Thus Retrofit prevents errors of this type

like image 61
Samuel Gwokuda Avatar answered Sep 21 '22 18:09

Samuel Gwokuda