Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-103758

Implement (edit-time?) typing checks in QML

    XMLWordPrintable

Details

    Description

      A while ago this ticket was opened which asked to investigate TypeScript integration. It was later closed with the justification that the request to investigate had been fulfilled, and actually implementing TypeScript support had not been requested.

      I made a search in the thickets and did not find newer requests on this topic. Has the idea of supporting typing in QML made support since then? If not, this ticket requests to follow up on the initial request and implement edit or build time checks of typing in QML documents.

      I am not a web developer and I have not been practicing TypeScript. However I know Python with type hints, and it looks like this is a very similar situation to QML. We have in both cases a dynamic language with optional, checkable typing through code annotations and a language server for edit-time checks. I believe type annotations in Python saved me a lot of time fixing silly typos and errors; and the lack of said annotations in QML/JS conversely is a regular source of wasted time and frustration for these same errors. This would be easily avoided by simple static checks.

      Another satisfying solution would be to support a typed language in QML documents as an alternative to Javascript.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtqmlteam Qt Qml Team User
            graslany Yves Grasland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes