Hacker News new | ask | show | jobs
by znpy 1438 days ago
one of the most annoying things about smalltalk/pharo is that the "marketing" tell you it's simple and the syntax fit in a sheet of paper, yet all the times i tried to try it i had to go through a lot of pharo introductory tutorial before i could even start to type an "hello world".

needless to say I got bored ad moved on.

2 comments

With any programming language there's a lot of introductory tutorial before we even start to type "hello world".

    ~$ ./visual ./visualnc64.im -nogui -doit "Stdout nextPutAll: 'hello world'; cr. ObjectMemory quit"
hello world

    ~$
— or something like —

    $ cat hello.st
    Stdio stdout 
        nextPutAll: 'hello world'; 
        nextPut: Character lf.!
    SmalltalkImage current snapshot: false andQuit: true!

    $ bin/pharo --headless Pharo10-SNAPSHOT-64bit-502addc.image hello.st
`Transcript show: 'Hello, World'`

Not especially complex syntax. It just doesn't have a lot in common with languages with Algol-like syntax