# Dictionary initialization

**URL:** <https://discourse.julialang.org/t/dictionary-initialization/47318>\
**Category:** New to Julia\
**Created:** [September 26, 2020, 3:12pm UTC](https://discourse.julialang.org/t/dictionary-initialization/47318 "2020-09-26T15:12:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Post date:** [September 26, 2020, 3:12pm UTC](https://discourse.julialang.org/t/dictionary-initialization/47318/1 "2020-09-26T15:12:45Z")

</div>

If I type the following in the REPL, I get what I expect: a dictionary with two elements. Note: I want the definition to be over two lines.

```julia
cols = Dict([ "FID_NEW" => :fid_new,
"POINT_X" => :point_x]) #,

```

However, if this expression is in an atom window, in the global space, and I execute it (shift-enter), I get the message:

```julia
syntax: incomplete: premature end of input 

```

Why would that be? It is as if only the first line is executed when executed from a atom window.

If I put the two lines within a function, the code works as expected, so that is what I’ll do. So why the error when typed in a window? Thanks.
