I suggest we ...

Richer literals: TimeSpan/DateTime/Char array/UTF8

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

4 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Tom Rathbone shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      F# Language

      Feedback and Knowledge Base