Add more methods to array (original) (raw)

Алексей Кузнецов kuaw26 at mail.ru
Fri Mar 13 09:13:03 PDT 2009


PROJECT COIN SMALL LANGUAGE CHANGE PROPOSAL FORM v1.0

AUTHOR(S): Alexey Kuznetsov

OVERVIEW More useful methods for array object.

FEATURE SUMMARY: No need for utility classes like java.util.Arrays. Most of those methods should be acessible through array object. And add more useful methods.

MAJOR ADVANTAGE: The code would be more compatc, elegant and self-explaining.

MAJOR BENEFIT: More compact and and uderstandable code. Array would be first-class objects.

MAJOR DISADVANTAGE: Associated costs in documentation, tutorials and overall language size.

ALTERNATIVES: None.

EXAMPLES SIMPLE EXAMPLE: String[] strs = new String[10]; .. fill array ... String[] sorted = strs.sort(); int ix = sorted.binarySearch(key); strs.fill("sample");

ADVANCED EXAMPLE: Any ideas how to implement: Higher Level Functions - Filter, Map, and Reduce ?

DETAILS SPECIFICATION: ?

COMPILATION: As today.

TESTING: ?

LIBRARY SUPPORT: None.

REFLECTIVE APIS: No.

OTHER CHANGES: No.

MIGRATION: A trivial textual substitution can be used to translate old code to the new syntax.

COMPATIBILITY

BREAKING CHANGES: None.

EXISTING PROGRAMS: No impact.

REFERENCES

EXISTING BUGS: None.

URL FOR PROTOTYPE (optional): None.



More information about the coin-dev mailing list