Skip to content

Richer literals: TimeSpan/DateTime/Char array/UTF8 #21

@baronfel

Description

@baronfel

Richer literals: TimeSpan/DateTime/Char array/UTF8 [11109258]

Submitted by Tom Rathbone on 12/16/2015 12:00:00 AM
4 votes on UserVoice prior to migration

Combining several suggestions for richer literals

  • New literals for TimeSpan and DateTime. e.g.
    "01:02:03"T --> new TimeSpan(1,2,3)
    "2015-01-02 10:30:00"D -> new DateTime(2015,01,02,10,30,00)
  • Char[] e.g
    "abcd"C
  • UTF8 encoded strings "abc££def"U
    and indeed perhaps the whole mechanism should be extensible like QZRING literals

Original UserVoice Submission
Archived Uservoice Comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions