Not null-muuttujat defaulteiksi Javassa
Huhtikuu 16th, 2007
Tätä muutosta toivoisin Javaan enemmän kuin mitään muuta:
http://users.encs.concordia.ca/~chalin/papers/2006-003.v3s-pub.pdf
4.5 Summary
A summary of the languages, extensions and tools covered in this section, is given in Table 3. Two key observations are that for all languages and tools not using Java 5 annotations there seems to be a trend in adopting
- non-null type system over non-null annotations, with
- non-null as the default.
Even well established languages like Eiffel are making the bold move of switching to the new default. The apparent trend in the evolution of languages supporting pointers would seem to indicate that the time is ripe to consider a switch in Java from nullable-by-default to non-null-by-default. A concrete proposal for this is given in the next section.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5030232
Artikkeli on luettu 609 kertaa. Kuuluu luokkiin: Ajatuksia, Ohjelmointi, Java, Funtionaalinen ohjelmointi
Jätä kommentti
Sallitut HTML-elementit:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed