Skip to content

Properly print 'None' for option types from FSI #364

@baronfel

Description

@baronfel

Properly print 'None' for option types from FSI [6690744]

Submitted by TeaDrivenDev _ on 11/9/2014 12:00:00 AM
18 votes on UserVoice prior to migration

FSI output properly handles 'Some x', but often prints 'None' as 'null', apparently when the value is part of a larger type.

let x : uint16 option = None

correctly results in:

val x : uint16 option = None

while

let y : string * uint16 option = "", None

instead prints:

val y : string * uint16 option = ("", null)

Response

** by fslang-admin on 2/5/2016 12:00:00 AM **

This should certainly be fixed, as much as possible
Don Syme, F# Language Evolution

Original UserVoice Submission
Archived Uservoice Comments

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions