# When and where should we use semicolon

**URL:** <https://discourse.julialang.org/t/when-and-where-should-we-use-semicolon/23597>\
**Category:** General Usage\
**Created:** [April 27, 2019, 12:47pm UTC](https://discourse.julialang.org/t/when-and-where-should-we-use-semicolon/23597 "2019-04-27T12:47:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Mr.Robot](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mr.robot/32/8052_2.png) [@Mr.Robot](https://discourse.julialang.org/u/Mr.Robot)\
**Post date:** [April 27, 2019, 12:47pm UTC](https://discourse.julialang.org/t/when-and-where-should-we-use-semicolon/23597/1 "2019-04-27T12:47:37Z")

</div>

## Problem

This might be a somehow uninteresting question. But when I read other people’s code snippets, I find that the use of semicolon does not follow certain patterns and seems to be a little random for me.

I know semicolon is used to suppress output just like in MATLAB. When I write code in MATLAB, I generally add semicolons everywhere like writing C/C++/Java. When output is needed, I just use print function to get what I want. I am not sure whether this is still preferable in Julia. If it is the case and it doe not fall into something people need to avoid, it would be good for consistency across different code snippets.

---

_[View the full topic](https://discourse.julialang.org/t/when-and-where-should-we-use-semicolon/23597)._
