# Inconsistency of line continuation after comma in script vs REPL

**URL:** <https://discourse.julialang.org/t/inconsistency-of-line-continuation-after-comma-in-script-vs-repl/12884>\
**Category:** Internals & Design\
**Tags:** question\
**Created:** [August 4, 2018, 7:50am UTC](https://discourse.julialang.org/t/inconsistency-of-line-continuation-after-comma-in-script-vs-repl/12884 "2018-08-04T07:50:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkamins](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bkamins/32/208538_2.png) [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Post date:** [August 4, 2018, 7:50am UTC](https://discourse.julialang.org/t/inconsistency-of-line-continuation-after-comma-in-script-vs-repl/12884/1 "2018-08-04T07:50:53Z")

</div>

I have the following code:

```julia
x = 1,
2

```

And now:

- If I save it to a file and execute then `x` is a tuple `(1,2)`.
- If I copy-paste it to REPL then `x` is a tuple `(1,)`.

However, if I wrap the expression in the code block, e.g. `begin`-`end`, like this:

```julia
begin
x = 1,
2
end

```

then `x` is `(1,2)` both when run as a script and when copy-pasted to REPL.

I wanted to ask if this is an intended inconsistency?

EDIT:

Additionally we have:

```julia
julia> begin
       x = 1,
       end
ERROR: syntax: unexpected "end"

```

and

```julia
julia> (x=1,) # it is a one-element named tuple
(x = 1,)

```

Given all this and [https://docs.julialang.org/en/latest/manual/functions/#Tuples-1](https://docs.julialang.org/en/latest/manual/functions/#Tuples-1) I think that:

```julia
julia> x = 1,

```

should throw an error as it is ambiguous.
