Feature wish list I want most for Java
Language feature I want most:
- raw string format or triple-quote string format like in Python.
- foreach loop with (index, element), like for (index, elment) in enumerate(list) in Python.
Library feature I want most:
- Polygon2D in Java2D. It seems Polygon2D is accidentally missing in Java2D. There is Polygon class but it is for integer. It is a pain to convert float/double to integer each time to render a polygon on screen.
- Shape2D(including Polygon2D) with ArrayList data model. Currently Polygon has 2 int arrays as its data model. Path2D has an PathIterator. But I wish the data model is ArrayList such that when a point's position is changed, the shape is changed automatically. Also it would be easy to get prev and next points for a point in a shape, which is common for geometry operation.
- This is missing area calculation method for Shape, even in Area class.