What is wrong?

Notice: Before sending an error with the download, please try the direct link first: The Good, the Bad, and the Ugly: An Empirical Study of Implicit Type Conversions in Javascript

Loading...

You must sign in to do that.

Forgot password?

The Good, the Bad, and the Ugly: An Empirical Study of Implicit Type Conversions in Javascript

The Good, the Bad, and the Ugly: An Empirical Study of Implicit Type Conversions in Javascript

,

The Good, the Bad, and the Ugly: An Empirical Study of Implicit Type Conversions in Javascript

,

Score: 9.00 | 2 votes
| Sending vote
| Voted!
|

Book Details:

pos
Global
pos
Category
Year:2015
Publisher:ECOOP
Pages:23 pages
Language:english
Since:16/10/2015
Size:533 KB
License:Pending review

Content:

Most popular programming languages support situations where a value of one type is converted into a value of another type without any explicit cast. Such implicit type conversions, or type coercions, are a highly controversial language feature. Proponents argue that type coercions enable writing concise code. Opponents argue that type coercions are error-prone and that they reduce the understandability of programs. This paper studies the use of type coercions in JavaScript, a language notorious for its widespread use of coercions. We dynamically analyze hundreds of programs, including real-world web applications and popular benchmark programs.

We find that coercions are widely used (in 80.42% of all function executions) and that most coercions are likely to be harmless (98.85%). Furthermore, we identify a set of rarely occurring and potentially harmful coercions that safer subsets of JavaScript or future language designs may want to disallow. Our results suggest that type coercions are significantly less evil than commonly assumed and that analyses targeted at real-world JavaScript programs must consider coercions.

Categories:

Tags:

Loading comments...

Scanning lists...

The book in numbers

global rank

online since

16/10/2015

rate score

9

votes

2

Social likes

Nothing yet...

Views

Downloads

This may take several minutes

Interest

Countries segmentation

This may take several minutes

Source Referers

Websites segmentation

evolution

This may take several minutes

Loading...