Why does GNU Smalltalk use parentheses for method bodies?

The GNU Smalltalk manual says that:

Unlike other Smalltalks, method statements are inside brackets.

So, I wonder, why not have such an arbitrary deviation from the Smalltalk-80?

+5
source share
1 answer

The original Smalltalk-80 had an interface with it, so you added classes, added methods to classes using the user interface, you could easily view them. Methods should not be inside the class in a text file.

Now that you are working with GNU Smalltalk, it has the greatest impact on command line scripting and saves scripts inside text files. So you need a way to define the method and class inside the script.

Coral. " "? > , script.

+6

All Articles