Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Insider News
  4. A proposal for type syntax in JavaScript

A proposal for type syntax in JavaScript

Scheduled Pinned Locked Moved The Insider News
javascriptcomcollaboration
7 Posts 5 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kent Sharkey
    wrote on last edited by
    #1

    TypeScript blog[^]:

    Today we’re excited to announce our support and collaboration on a new Stage 0 proposal to bring optional and erasable type syntax to JavaScript.

    It's a type!

    And I'm sure no one will mention the "Embrace, Extend, Extinguish" memo.

    M 1 Reply Last reply
    0
    • K Kent Sharkey

      TypeScript blog[^]:

      Today we’re excited to announce our support and collaboration on a new Stage 0 proposal to bring optional and erasable type syntax to JavaScript.

      It's a type!

      And I'm sure no one will mention the "Embrace, Extend, Extinguish" memo.

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #2

      :laugh: So if JavaScript, the champion of duck-typed languages, embraces type checking, I wonder if the insanity of other duck-typed languages will finally begin their slow demise. Or adopt the type!

      Latest Article:
      Create a Digital Ocean Droplet for .NET Core Web API with a real SSL Certificate on a Domain

      K R 2 Replies Last reply
      0
      • M Marc Clifton

        :laugh: So if JavaScript, the champion of duck-typed languages, embraces type checking, I wonder if the insanity of other duck-typed languages will finally begin their slow demise. Or adopt the type!

        Latest Article:
        Create a Digital Ocean Droplet for .NET Core Web API with a real SSL Certificate on a Domain

        K Offline
        K Offline
        Kaladin
        wrote on last edited by
        #3

        Meanwhile, strong-typed languages will start adopting weak-typed features until everything is wiped away with the new languages

        M D 2 Replies Last reply
        0
        • K Kaladin

          Meanwhile, strong-typed languages will start adopting weak-typed features until everything is wiped away with the new languages

          M Offline
          M Offline
          Marc Clifton
          wrote on last edited by
          #4

          Kaladin wrote:

          Meanwhile, strong-typed languages will start adopting weak-typed features until everything is wiped away with the new languages

          Yeah, you make a good point. :(

          Latest Article:
          Create a Digital Ocean Droplet for .NET Core Web API with a real SSL Certificate on a Domain

          1 Reply Last reply
          0
          • M Marc Clifton

            :laugh: So if JavaScript, the champion of duck-typed languages, embraces type checking, I wonder if the insanity of other duck-typed languages will finally begin their slow demise. Or adopt the type!

            Latest Article:
            Create a Digital Ocean Droplet for .NET Core Web API with a real SSL Certificate on a Domain

            R Offline
            R Offline
            Rob Grainger
            wrote on last edited by
            #5

            I'm not sure I'd call JS the "champion" of duck typed languages. Certainly the most widely used. Also probably the worst implementation of it. Having used Smalltalk, better implementations were available decades before the abomination that is JavaScript.

            "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

            D 1 Reply Last reply
            0
            • K Kaladin

              Meanwhile, strong-typed languages will start adopting weak-typed features until everything is wiped away with the new languages

              D Offline
              D Offline
              Dan Neely
              wrote on last edited by
              #6

              Kaladin wrote:

              Meanwhile, strong-typed languages will start adopting weak-typed features until everything is wiped away with the new languages

              Meanwhile in C#... dynamic has entered the chat.

              Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius

              1 Reply Last reply
              0
              • R Rob Grainger

                I'm not sure I'd call JS the "champion" of duck typed languages. Certainly the most widely used. Also probably the worst implementation of it. Having used Smalltalk, better implementations were available decades before the abomination that is JavaScript.

                "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

                D Offline
                D Offline
                Dan Neely
                wrote on last edited by
                #7

                How about we say javascript is the most ducked up duck type language.

                Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups