Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Smalltalk
Transcript cr; show: 'Hello World!'

The Transcript is a standard-output-like object in the Smalltalk environment.

FYI; In classic Smalltalk, message cr alone does not output line breaks (it requires followed by an endEntry message i.e. Transcirpt cr ; entEntry.), so there was a convention to output a line break firstly then output the text by using show: method in which includes the endEntry process. Hence the cr message is sending firstly in the idiom.
with Ada.Text_IO;
use Ada.Text_IO;
Put_Line ("Hello World!");

New implementation...
< >
programming-idioms.org