r/java • • Mar 26 '26

Carrier Classes & Discussing Syntax with Brian Goetz - Inside Java Podcast 52

https://www.youtube.com/watch?v=b6cXuA84c9g
86 Upvotes

25 comments sorted by

View all comments

Show parent comment

2

u/vytah Mar 30 '26

If you use = for assignment, you have stolen the best syntax for the comparison operator.

There are languages that use = for both assignment and comparison, and they work fine.