|
|
|
|
|
by mpweiher
2074 days ago
|
|
> I don't think that adopting a syntax that looks similar to Smalltalk means it has 'adopted Smalltalk syntax'. How so? That is literally what they did. The trailing closure syntax is Smalltalk keyword syntax, and so Smalltalk keyword syntax is used for that one special case. Which exists in addition to the non-keyword trailing closure syntax and the non-trailing (regular argument) closure syntax. > but it's not fair to say Swift 'added Smalltalk syntax to address a special case'. Can you explain how it is "unfair" when that is exactly what happened? Smalltalk syntax is really compact, there just isn't that much there. |
|