Giter Site home page Giter Site logo

Comments (5)

T-Gro avatar T-Gro commented on May 28, 2024 1

In the video, this is how strings work - you get them already doubled by the IDE, and you are expected to type in between them to get good recovery.

I do not see how this particular case could be changed throughout lexing, since strings are a legit part of the language.

Do you have a particular idea in which direction to improve this without breaking strings?
Also, why did you delete the double quote instead of typing in-between them?

from fsharp.

T-Gro avatar T-Gro commented on May 28, 2024 1

I am not sure if this would be the valid thing to do in all cases though.

from fsharp.

auduchinok avatar auduchinok commented on May 28, 2024

@edgarfgp Do you remember how you ended up with only one double quote? I expect that they are added and removed together by an IDE during typing.

Unfortunately, in this particular case it looks like expected behavior: F# strings are always multiline, so everything after an unfinished string is considered a part of it, and this was a design choice in the language itself.

from fsharp.

edgarfgp avatar edgarfgp commented on May 28, 2024

@edgarfgp Do you remember how you ended up with only one double quote? I expect that they are added and removed together by an IDE during typing.

@auduchinok . See this GIF
Apr-23-2024 14-24-32

from fsharp.

edgarfgp avatar edgarfgp commented on May 28, 2024

In the video, this is how strings work - you get them already doubled by the IDE, and you are expected to type in between them to get good recovery.

I do not see how this particular case could be changed throughout lexing, since strings are a legit part of the language.

Do you have a particular idea in which direction to improve this without breaking strings? Also, why did you delete the double quote instead of typing in-between them?

@T-Gro I guess what I would expect is that when I delete a single pair of quotes it removes the other, leaving only the failwith ?

from fsharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.