Swift repl pressing enter in middle of line should execute, not enter a newline

Originator:keithbsmiley
Number:rdar://26886287 Date Originated:19-Jun-2016 22:28
Status:Resolved Resolved:Xcode 8.3 beta 1
Product:Developer Tools Product Version:Xcode 8 beta 1
Classification:UI/Usability Reproducible:Always
 
Summary:
Currently if you're in the middle of a line in the swift repl and press enter, a newline is entered. Instead of this I believe that the current input should be executed.

Steps to Reproduce:
1. type `swift` at the command line to enter the repl
2. Type an instruction such as `let a = 5`
3. Go to the left a character with the left arrow

Expected Results:
The instruction is evaluated and `a` is assigned to `5`

Actual Results:
A `\n` is inserted at the insertion point

Version:
Xcode 8 beta 1

Notes:
The majority of other repls I've tried work the way I'm hoping for. For this I tried python, ruby, haskell, and node.

Relevant llvm bug: https://llvm.org/bugs/show_bug.cgi?id=27365

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!