Hi,
I think there was a misunderstanding Tim. The idea is not necessarily to let developers write code with this many arguments, the IDE could actually enforces the programmer not to write methods with too many arguments. It's really about non programmers, like code generating tools such as SmaCC.��
In Java for example, the "Clean code" code convention limits the number of arguments per method to 3, the "Code complete" code convention limits it to 7, but Java can compile methods up to 255 arguments for code generators.
If you want to limit the number of arguments the programmer can write, enforce it in the IDE according to your code convention.��Please talk about the maximum number of arguments a developer can write in another thread, this is non related to the implementation discussed here.
As Jan said, there are already too many limitations in Smalltalk to write proper code generators. We've worked on those limitations already:
- the SistaV1 bytecode set will go to production in Pharo 6 (likely Squeak at some point too) and it removes an important part of the limitations (jump sizes up to 65k instructions instead of 1024, ...).��
- Spur removed other limitations (methods with up to ��32k literals instead of 255, behaviors with up to 65k inst vars instead of 255).
The important limitations remaining are the max frame size (56), which in practice limits the number of temps to around 55, whereas we could have 64 temps or more, and the number of arguments of methods and blocks. This scheme is about solving those problems. There are 0.5% of methods using a large frame so we could grow from 56 to 128 or 256 without any significant problems. For arguments bytecode calling convention looks so much simpler than VM support.