Finalising the on-ramp feature

Kenneth Fogel kfogel at dawsoncollege.qc.ca
Wed Jan 22 16:44:09 UTC 2025


I'm puzzled. Will I need any imports if what I want comes from java.base in the compact format?

The statement that now requiring "IO." before the input/output statements will make the transition from compact to api easier is, for me, false. It is just one more item in those first classes where we must tell our students not to worry themselves over the dot notation. It will eventually make sense. 

I'd like to see a poll of instructors asking which methods should have a default static import. As already mentioned, I'd like to see pow rather than Math.pow. I'd take it even further and suggest that the entire Math library should have default static imports. Make it a feature you can turn on or off when using java.exe to compile and execute. No need to tell me why this won't work in an API world, I can see why, but it will work in a compact world. This is a world exclusively for teaching the language. No one is likely to develop an application for distribution using compact syntax. It is a stepping stone.

Ken



More information about the amber-dev mailing list