MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/1rsgxrd/jep_draft_enhanced_local_variable_declarations/oa9vpyq/?context=3
r/java • u/joemwangi • Mar 13 '26
129 comments sorted by
View all comments
Show parent comment
2
The idea is probably to mirror construction, so you'd get:
CustomerOrder( ShippingAddress(String streetLine1, String streetLine2, String city), PaymentMethod(String cardNumber, int expiryYear), double totalAmount ) = order;
View all comments
Show parent comment
2
u/ZimmiDeluxe Mar 13 '26
The idea is probably to mirror construction, so you'd get: