# Choosing a simpler print than println ? :)

**URL:** https://discourse.julialang.org/t/choosing-a-simpler-print-than-println/51820
**Category:** New to Julia
**Created:** [December 14, 2020, 6:28pm UTC](https://discourse.julialang.org/t/choosing-a-simpler-print-than-println/51820 "2020-12-14T18:28:10Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![vedasulo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vedasulo/32/20324_2.png) [@vedasulo](https://discourse.julialang.org/u/vedasulo)
#### Post date: [December 14, 2020, 6:28pm UTC](https://discourse.julialang.org/t/choosing-a-simpler-print-than-println/51820/1 "2020-12-14T18:28:10Z")

</div>

I’ve read materials liked some and some are liking. 🙂 . Found easy things , even easy to write a function and a unicode.  
But All the way through those cool use why julia choose `println` (print is more natural than println ).  
I am thinking why Julia choose `println` instead of `print` because `print` is easier to talk and read. 🙂

---

<div class="post-metadata">

### Author: ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)
#### Post date: [December 14, 2020, 6:30pm UTC](https://discourse.julialang.org/t/choosing-a-simpler-print-than-println/51820/2 "2020-12-14T18:30:15Z")

</div>

I’m of two minds here. 80% of the time, you want `println` behavior, but then sometimes you don’t want a newline at the end. The python approach is to use a keyword argument, which isn’t the worst, but I think julia’s answer of having both `print` and `println` is probably conceptually clearer.

---

<div class="post-metadata">

### Author: ![JeffreySarnoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeffreysarnoff/32/1980_2.png) [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)
#### Post date: [December 14, 2020, 6:30pm UTC](https://discourse.julialang.org/t/choosing-a-simpler-print-than-println/51820/3 "2020-12-14T18:30:40Z")

</div>

Julia has both `print` and `println`. `println` adds newline at the end.

```julia
julia> x = 5
5
julia> print(x)
5
julia> println(x)
5

```

---

<div class="post-metadata">

### Author: ![vedasulo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vedasulo/32/20324_2.png) [@vedasulo](https://discourse.julialang.org/u/vedasulo)
#### Post date: [December 14, 2020, 6:31pm UTC](https://discourse.julialang.org/t/choosing-a-simpler-print-than-println/51820/4 "2020-12-14T18:31:41Z")

</div>

🙂 oh sorry. I found print. cool 🙂 Solved.  
I hope in future, Julia be concern about making things more natural language ways 🙂

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [December 14, 2020, 6:34pm UTC](https://discourse.julialang.org/t/choosing-a-simpler-print-than-println/51820/5 "2020-12-14T18:34:08Z")

</div>

> [@vedasulo](#):
>
> Julia be concern about making things more natural language way

Probably the final syntax choice is because other languages, like `java` and `C` have also `println`. I would also have chosen to keep `print` for the most common (I think) case that `println` is, but others might prefer otherwise.

---

<div class="post-metadata">

### Author: ![vedasulo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vedasulo/32/20324_2.png) [@vedasulo](https://discourse.julialang.org/u/vedasulo)
#### Post date: [December 14, 2020, 6:39pm UTC](https://discourse.julialang.org/t/choosing-a-simpler-print-than-println/51820/6 "2020-12-14T18:39:25Z")

</div>

🙂 yes your are right. I personally like `print` because sound more natural to write and talk as `Python` background.  
I personally think 🙂 the way of writing of python (more natural) and more easier learning curve, that part should be import to julia (yes i got to know, julia have even more cool features) but anyway, but i feel fear if borrowed from c or java (steeper learning curve) syntaxes. 🙂

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [December 14, 2020, 6:45pm UTC](https://discourse.julialang.org/t/choosing-a-simpler-print-than-println/51820/7 "2020-12-14T18:45:43Z")

</div>

> [@vedasulo](#):
>
> writing of python (more natural) and more easier learning curve

As a non-former-python regular user I find the Julia syntax much easier (with the only exception of that and the `and` vs. `&&`). Otherwise, the syntax for functions, structures, math in general, loop ranges, an many other, is cleaner in Julia. But we always find that what we are used to is simpler. That is normal.
