You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val emps =
[{id = 100, name = "Fred", deptno = 10},
{id = 101, name = "Velma", deptno = 20},
{id = 102, name = "Shaggy", deptno = 30},
{id = 103, name = "Scooby", deptno = 30}];
the shell will print
val emps =
[{deptno=10,id=100,name="Fred"},{deptno=20,id=101,name="Velma"},
{deptno=30,id=102,name="Shaggy"},{deptno=30,id=103,name="Scooby"}] : {deptno:int, id:int, name:string} list
but sml would print
val it =
[{deptno=10,id=100,name="Fred"},{deptno=20,id=101,name="Velma"},
{deptno=30,id=102,name="Shaggy"},{deptno=30,id=103,name="Scooby"}]
: {deptno:int, id:int, name:string} list
and we should emulate that. Note how ': type' are on a new line.
The text was updated successfully, but these errors were encountered:
julianhyde
changed the title
Improve how values are printed
Improve pretty-printing: wrap long lines, and abbreviate long lists and deep structures
Mar 7, 2020
Improve value formatting. Currently, given
the shell will print
but sml would print
and we should emulate that. Note how ': type' are on a new line.
The text was updated successfully, but these errors were encountered: