Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> "Everything has to be an object": obviously bad

Personally I prefer when it's all objects. Otherwise you wind up with primitive types that you can't do all the objecty stuff with. Then you wind up with hacks like Java's int vs Integer dichotomy.

Compare this with Python where the internals of the integer type are so hidden that it can do things like seamlessly replace it with a bigint. What it is inside doesn't matter because you only care that it answers to the same messages.



What are your thoughts on project valhalla on the JVM? I think making structs object-like is a win as ultimately having everything involve extreme pointer chasing is wasteful




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: