list terms in a given taxonomy

If we want to list all terms in a taxonomy “writer”:

$writers= get_terms( array(
    'taxonomy' => 'writer'  
) );
print_r($writers);
foreach($writers as $writer){
  echo $writer->name."<br />";
}