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

This isn't quite what the OP is referring to. In Smalltalk, all arguments are named all the time, including positional arguments. Object methods aren't named separately from their parameters. They are only their set of named arguments, i.e.,

So say I have a BankAccount class. In Python I would write a method to transfer to another account

def transfer(this, to, amount): ...

and invoke it as

account.transfer(other_account, 500)

In Smalltalk I would write

transferTo: account amount: n [ ... ]

and invoke it as

account transferTo: other_account amount: 500.

So it's not quite named arguments. It's that there isn't a distinction between name of function, argument name, and positional parameters. It just doesn't map to the function notation typical from mathematics.



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: