Skip to content

Add support for triple quoted ASCII byte string - #19182

Merged
T-Gro merged 2 commits into
dotnet:mainfrom
kerams:b
Dec 31, 2025
Merged

Add support for triple quoted ASCII byte string#19182
T-Gro merged 2 commits into
dotnet:mainfrom
kerams:b

Conversation

@kerams

@keramskerams commented Dec 29, 2025

Copy link
Copy Markdown
Contributor

Description

Before

> """ " """B;;
""" " """B;;
^^^^^^^^^
stdin(2,1): error FS0003: This value is not a function and cannot be applied.

After

> """ " """B;;
val it: byte array = [|32uy; 34uy; 32uy|]

Didn't bother with a language feature... Also this could TECHNICALLY be breaking if you have something stupid like this in your code today

> let x a b = 7;;
val x: a: 'a -> b: 'b -> int
> let B = ();;
val B: unit = ()
> x """ " """B;;
val it: int = 7

Checklist

  • Test cases added
  • Performance benchmarks added in case of performance changes
  • Release notes entry updated

@Martin521

Copy link
Copy Markdown
Contributor

This needs a small RFC, please, in the fslang-design repo. To ensure it ends up in the spec.

@T-Gro

Copy link
Copy Markdown
Member

RFC approved and merged now.

@github-project-automationgithub-project-automationBot moved this from New to In Progress in F# Compiler and ToolingDec 31, 2025
@T-Gro
T-Gro merged commit aa5b719 into dotnet:mainDec 31, 2025
37 checks passed
@github-project-automationgithub-project-automationBot moved this from In Progress to Done in F# Compiler and ToolingDec 31, 2025
@kerams
kerams deleted the b branch December 31, 2025 13:31
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants

@kerams@Martin521@T-Gro