marchof / java-almanac

The history and future of Java.

Home Page:https://javaalmanac.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Potential Type Problems

HenrySoftwareStudio opened this issue · comments


Hi. At this line, with the var as type, there is a potential for a type-related error. Please explicitly list what the type is expected to be.

I used var at several places. Are you suggesting not to use it in general or what is the problem with this specific instance?

Just suggest avoiding it in general because this will cause people to start guessing what type is name.