A heroic new proposal for JavaScript // The Code Report

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 มี.ค. 2022
  • Could JavaScript have its own native type system like TypeScript in the future? The team behind TS has submitted an ECMAScript TC39 proposal that seeks to add "Types as Comments" to JS.
    #js #webdev #TheCodeReport
    🔗 Resources
    JS Types Blog Post devblogs.microsoft.com/typesc...
    TC39 Proposal github.com/giltayar/proposal-...
    History of JavaScript • The Weird History of J...
    React 18 reactjs.org/blog/2022/03/08/r...
    M1 Mac Studio www.apple.com/mac-studio/
    🔥 Get More Content - Upgrade to PRO
    Upgrade to Fireship PRO at fireship.io/pro
    Use code lORhwXd2 for 25% off your first payment.
    🎨 My Editor Settings
    - Atom One Dark
    - vscode-icons
    - Fira Code Font
    🔖 Topics Covered
    - News about new JS features
    - Native JS type system
    - How TC39 works
    - React 18 release candidate
    - Apple Mac Studio M1 Ultra
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 630

  • @amphibia95
    @amphibia95 2 ปีที่แล้ว +1052

    Vanilla JS with optional types would literally be a dream come true. Hope the proposal passes!

    • @sweetmelon3365
      @sweetmelon3365 2 ปีที่แล้ว +2

      why? Can you pls explain? I mostly code in java and python and only did snippets in js cus of web dev

    • @RealMephres
      @RealMephres 2 ปีที่แล้ว +27

      @drag codes Cleaner code also usually leads to less resource overhead and unexpected behavior, thus improving the stability and performance of the application. If this passes, it can make JavaScript even more popular than it already is.

    • @nathanoy_
      @nathanoy_ 2 ปีที่แล้ว +11

      Aka like python. Why not use python instead. Xdd (joking)

    • @amphibia95
      @amphibia95 2 ปีที่แล้ว +2

      @@sweetmelon3365 I pretty much second everything that was already said in the video. I think that giving a type-safe version to a loosely typed language can cause some heated discussions, I guess because some people push it too hard and say it should be the universal norm. IMO it's all about scale of your project. If it's a small todo app or medium size one i don't see anything wrong with using anything that gets the job done. But in bigger projects with thousands of lines of code a small type mismatch could cause hours of needless debugging and ripping one's hair off :) That's what TS offers but it was always a hassle to set it up correctly in an existing codebase. I believe this feature would allow for gradual change towards type safe ecosystem. But hey, that's just my take on it :)

    • @MMitic08
      @MMitic08 2 ปีที่แล้ว +7

      It's not like all of JS libraries will rewrite themselves once types are available, leaving you with broken experience of trying to write type-safe code while everything you use is actively shitting on that idea. Optional things generally don't work, they are useful but they don't affect the ecosystem much.

  • @amphibia95
    @amphibia95 2 ปีที่แล้ว +305

    Also this entire Code Report thing is exceptionally good. Keep it up man :)

  • @Gabbyreel
    @Gabbyreel 2 ปีที่แล้ว +177

    I love how we started with static typing as standard, somewhere along the line we decided that was too clunky and went with implicit typing, and now we're back to static typing again.

    • @shorwood
      @shorwood 2 ปีที่แล้ว +43

      But now with a twist : It's """Optional"""

    • @christianmartinez2179
      @christianmartinez2179 2 ปีที่แล้ว +45

      Took them long enough to realize weak typing sucks

    • @omri9325
      @omri9325 2 ปีที่แล้ว +5

      @@shorwood Optional, structural, gradual.

    • @MeNumber47
      @MeNumber47 2 ปีที่แล้ว +12

      It's good to try different things... But you know... It didn't work out

    • @bafi29
      @bafi29 2 ปีที่แล้ว +20

      If you come from a static type language, dynamic type fells like running away with murder for the freedom it gives to you.
      If you come from a dynamic type language to a static typed one, is like putting yourself in a armor because it makes you feel safer.

  • @joble6098
    @joble6098 2 ปีที่แล้ว +7

    Love this. Short and sweet and catches me up with the dev world in mere minutes.

  • @makerKID5
    @makerKID5 2 ปีที่แล้ว +251

    Love that you added the bit about the FED. Every American should understand the Federal Reserve. 1913 really changed America forever and 1971 too.

    • @_Code.Pilot_
      @_Code.Pilot_ 2 ปีที่แล้ว +16

      Exactly why they're coming after crypto!

    • @SimGunther
      @SimGunther 2 ปีที่แล้ว +7

      @@_Code.Pilot_ and coming up with a crypto of their own LOL

    • @cjezinne
      @cjezinne 2 ปีที่แล้ว +18

      over exaggerating the gold standard again… the Uk fazed out in the 30s and there’s very little benefit to a gold pegged currency… stop listening to online crypto enthusiasts

    • @huntercoxpersonal
      @huntercoxpersonal 2 ปีที่แล้ว +2

      Yeah, I agree.. Not mad at this being in the update.

    • @Filaxsan
      @Filaxsan 2 ปีที่แล้ว +1

      Yes! Loved it and we need a reality check often

  • @danielschmider5069
    @danielschmider5069 2 ปีที่แล้ว +29

    So, like Python type hints?
    Wow, what a brilliant idea!

  • @adrianmoisa2281
    @adrianmoisa2281 2 ปีที่แล้ว +4

    Types in comments sounds like the beginning of a new JS branded nightmare. Never have I lost my enthusiasm so fast after one sentence.

    • @mangelozzi
      @mangelozzi 22 วันที่ผ่านมา

      I think missed what he was saying, currently you have JSDoc (types in comments), but is explainined in the video it's not great, hence this proposal.

  • @me-me8ge
    @me-me8ge 2 ปีที่แล้ว +81

    Pricetag on the macs doesn't matter, since I'm always paying exactly 1 kidney, no matter the inflation rate.

    • @perregrinne2500
      @perregrinne2500 2 ปีที่แล้ว +11

      Whose kidney?

    • @naveennamani2
      @naveennamani2 2 ปีที่แล้ว +4

      @@perregrinne2500 LoL exactly the question that needs to be asked, we can't grow kidneys everytime Apple releases something 😂

    • @gcod3d161
      @gcod3d161 2 ปีที่แล้ว

      @@perregrinne2500 the kidneys of the sweatshop laborers

    • @mubashirjamali
      @mubashirjamali 2 ปีที่แล้ว

      THAT's COOL, BUT this time u will need to sell more than TWO!!!

    • @DrunkenUFOPilot
      @DrunkenUFOPilot 2 ปีที่แล้ว +3

      Ah, now I understand why most Apple fans own only one Mac never two or more.

  • @RobertWildling
    @RobertWildling 2 ปีที่แล้ว

    Again - I really DO love your humor! Those images that come along with your statements - simply the best!

  • @anj000
    @anj000 2 ปีที่แล้ว +38

    I really love how you are not afraid to step into economics and politics.
    They really do be trying to make us own nothing and be happy.

    • @FranoNola
      @FranoNola 2 ปีที่แล้ว +1

      How dare they. Trying to make us happy... Awful

    • @anj000
      @anj000 2 ปีที่แล้ว +10

      @@FranoNola "happy".
      As many people in North Korea would say - we can't complain.

    • @davidjeffers9361
      @davidjeffers9361 2 ปีที่แล้ว +7

      @@FranoNola u don't understand how the world works if u think "they" will be able to provide you happiness. They will distract you with meaningless short term pleasure.

    • @FranoNola
      @FranoNola 2 ปีที่แล้ว

      @@davidjeffers9361 Hey, as long as I'm happy

    • @kylebruns9060
      @kylebruns9060 2 ปีที่แล้ว

      @@FranoNola happy is defined by the individual, and I don’t see how anyone can be happy paying ridiculous prices just to live. Especially considering a lot of the scarcity in the US is artificial. Kind of like how farmers will literally pour milk on the floor if the supply is too high, because they’re not willing to sell it at a lower price, so they decrease the supply.

  • @geeshta
    @geeshta 2 ปีที่แล้ว +241

    So basically what Python has been doing for the past few years. I think it would be awesome if browsers could just interpret TypeScript without compilation the same way they can interpret JS or WASM.

    • @aethermass
      @aethermass 2 ปีที่แล้ว +6

      TS is not intended to work without compiling to JS. There is no other compilation option as far as I am aware. TS was never intended to work as you suggest. That would be a whole other language.

    • @NicolasChanCSY
      @NicolasChanCSY 2 ปีที่แล้ว +25

      @@aethermass Please correct if I am wrong.
      But if we have JIT for JS, e.g. V8, and TS is mostly, if not exactly, JS with type annotations added, why we cannot have JIT for TS in our browsers?
      I don't see a difference in their files, except file extension and type annotation.
      I don't have much JS or TS experience, and use Python occasionally.

    • @rafindobuff990
      @rafindobuff990 2 ปีที่แล้ว +4

      wasm is interpreted??

    • @geeshta
      @geeshta 2 ปีที่แล้ว +14

      @@rafindobuff990 Yes it is. It still has to be run in browser or Node runtime and isn't executed directly by your CPU like Assembly.

    • @_fayeznazzal
      @_fayeznazzal 2 ปีที่แล้ว +3

      @@geeshta You mean compiled, right? WASM should not be interpreted

  • @alinawaz4034
    @alinawaz4034 2 ปีที่แล้ว +29

    OMG this is amazing I love it We Need more code reports.

  • @bobDotJS
    @bobDotJS 2 ปีที่แล้ว +2

    JS with types is so exciting. I love Jeff and this "code report" series too. Lots to be thankful for as a developer in 2022

  • @roy.galaxy
    @roy.galaxy 2 ปีที่แล้ว

    I just love the way he makes videos whether code videos or code report.

  • @hypensterisk
    @hypensterisk 2 ปีที่แล้ว +47

    I love how JavaScript gets better over time

    • @MiguelAngel-fw4sk
      @MiguelAngel-fw4sk 2 ปีที่แล้ว +7

      But at a snail pace

    • @DietChugg
      @DietChugg 2 ปีที่แล้ว +5

      I do love that although it's a double edge sword. When new features come out it makes me feel like my old code is now crap and needs to be fixed. It makes my new code that much nicer to work with so it's worth it. Refactoring can suck though.

    • @DietChugg
      @DietChugg 2 ปีที่แล้ว

      @@PefectPiePlace2 I would say it could go out instead of up but... Programming languages never seem to die.

    • @leoingson
      @leoingson 2 ปีที่แล้ว +1

      F*cked up languages will always have a taint - look at PHP, there will always be messy code.

  • @MarkVrankovich
    @MarkVrankovich 2 ปีที่แล้ว +5

    JS becoming the standard for the browser is like marrying someone you met in Vegas while impressively drunk. Once sober you realize your spouse's many faults. Then, to reduce your daily suffering, you spend the following years trying to change them for the better. They make progress, but you know they'll never be perfect...

  • @isheanesunigelmisi8400
    @isheanesunigelmisi8400 2 ปีที่แล้ว +32

    This series is just brilliant

  • @6little6fang6
    @6little6fang6 2 ปีที่แล้ว

    I really love the code report, big kudos to you.

  • @parthipankalayini8
    @parthipankalayini8 2 ปีที่แล้ว +18

    Wow future js going 🔥🔥🔥

  • @nicetomeetugaming7024
    @nicetomeetugaming7024 2 ปีที่แล้ว

    Short and sweet!

  • @gideonstowell3070
    @gideonstowell3070 2 ปีที่แล้ว

    Love that jab at the Fed at the end

  • @PedroPiastrele
    @PedroPiastrele 2 ปีที่แล้ว

    This videos should never stop, that must be a proposal to make that happen.

  • @BRP-Moto-Tips
    @BRP-Moto-Tips 2 ปีที่แล้ว

    love this series

  • @lronmate
    @lronmate 2 ปีที่แล้ว

    Love these code reports fr

  • @_runic
    @_runic 2 ปีที่แล้ว +1

    this video is an emotional rollercoaster

  • @limitlesskode
    @limitlesskode 2 ปีที่แล้ว

    That would be super exciting 👍🏾

  • @themalmana
    @themalmana 2 ปีที่แล้ว

    Damn that description was accurate about me on my m1 MacBook at the coffee shop writing typescript

  • @chadkrause6574
    @chadkrause6574 2 ปีที่แล้ว +1

    You figured out the formula for good programming videos. The “even the guy in the coffee shop with a man bun” sounded like an Eminem lyric lol

  • @DEV_XO
    @DEV_XO 2 ปีที่แล้ว

    Love ur content mate!

  • @libberator5891
    @libberator5891 2 ปีที่แล้ว +6

    There's an error in the video. At 1:01, the 4 (technically 5) stages should be denial, anger, depression, bargaining, and acceptance

    • @DrunkenUFOPilot
      @DrunkenUFOPilot 2 ปีที่แล้ว

      Or maybe it will be just one step, after I send my "boys" over to "have a little talk" with them.

  • @theinsgame
    @theinsgame 2 ปีที่แล้ว

    Love the reference at the absurd inflation and announced rate-hikes

  • @abhijithganesh2064
    @abhijithganesh2064 2 ปีที่แล้ว

    I love this!

  • @sonmangaking
    @sonmangaking 2 ปีที่แล้ว

    This is very informative and cool

  • @RaviolistRavioli
    @RaviolistRavioli 2 ปีที่แล้ว +5

    Such a messy language, I love it

  • @qasimmehdi8732
    @qasimmehdi8732 2 ปีที่แล้ว

    Goosebumps every time I hear the intro.

  • @anonymanonym3126
    @anonymanonym3126 2 ปีที่แล้ว +1

    Enjoyed and also satisfied for spending 3 minutes with you)

  • @jebenobesmrtanbatica8085
    @jebenobesmrtanbatica8085 2 ปีที่แล้ว +70

    Would be cool to have stuff like that in the vanilla JS. Could you do a video about strange JS behaviours?

    • @ArtisGraphics
      @ArtisGraphics 2 ปีที่แล้ว +2

      the video idea is cool, do that please

    • @FunctionGermany
      @FunctionGermany 2 ปีที่แล้ว +4

      you mean like when they tell you that objects are always truthy?
      const x = new String("")
      console.log(typeof x) // "object"
      console.log(x == false) // true
      :D
      (the issue is the double equals unpacking the primitive wrapper object)

    • @eacardenase
      @eacardenase 2 ปีที่แล้ว

      Please, this would be awesome.

    • @sadhlife
      @sadhlife 2 ปีที่แล้ว +5

      there's a 4 minute talk by gary bernhardt called "wat". It's absolute gold in that regard.

    • @jebenobesmrtanbatica8085
      @jebenobesmrtanbatica8085 2 ปีที่แล้ว

      @@sadhlife thanks, will check it out

  • @anonymousse1107
    @anonymousse1107 2 ปีที่แล้ว +5

    At first, I switch to JS because it loosely type, and I can freely express my idea (and constraint type in my mind) without worry about anything at first. It such a great place to test your initial thoughts, not like many other languages. I still think there is the beauty of JS without static type, although I use TS all the time.

    • @squarerootof-1307
      @squarerootof-1307 ปีที่แล้ว

      There's also the fact that when you're using TS, you can literally just use the any type if the types are getting overwhelming to you. Like if you're solving some sort of really half problem, and the types are distracting you, use any and change it later. Other languages don't really allow that. There's an on and off switch here.

    • @mangelozzi
      @mangelozzi 22 วันที่ผ่านมา

      Type system would be opt in, you won't be forced to use it unless you want to.

  • @Ashwix1997
    @Ashwix1997 2 ปีที่แล้ว

    I love it!

  • @Justin73791
    @Justin73791 2 ปีที่แล้ว

    Dude that jab at the fed had me on the floor XD

  • @GGdevelopment
    @GGdevelopment 2 ปีที่แล้ว +1

    Love the jabs at the gov and this new series. This one got me to sub.

  • @wyatt2125
    @wyatt2125 2 ปีที่แล้ว

    Just started learning js and this would be awesome

  • @SkyyySi
    @SkyyySi 2 ปีที่แล้ว +141

    If I understand correctly, these type checks would work like python, right? In python, type hints are also ignored at runtime, but not by editor tooling.

    • @nathanhedglin931
      @nathanhedglin931 2 ปีที่แล้ว +7

      Correct. Expect they also want to add some new primitive types. No custom runtime types.

    • @luizAugustoll
      @luizAugustoll 2 ปีที่แล้ว +6

      @@nathanhedglin931 i doubt, jsdocs is pretty close to ts types nowadays, but have an horrible syntax

    • @dinoscheidt
      @dinoscheidt 2 ปีที่แล้ว +4

      I don’t get why they just don’t get optional types finally into that system. In python land, from what I see my data science / engineers do: they basically ignore all of it. Let’s face it. Huge amounts of JS are powering application logic nowadays and not mouse click event listeners.

    • @RasmusSchultz
      @RasmusSchultz 2 ปีที่แล้ว +2

      The main difference is you don't deploy Python on the client side. While this approach makes sense in the server side, it makes very little sense in browsers, where it provides no benefits to the end user, and potential degrades loading and parser performance for stuff end users shouldn't be downloading in the first place. This is a developers-only feature. Put it in DevTools or a Chrome extension. (where, for that matter, it could support the full language - and actually perform type-checks!)

    • @grumpylibrarian
      @grumpylibrarian 2 ปีที่แล้ว

      It's gonna be complicated. I have a JS typehinting codebase I've developed based on Symbol.hasInstance well-known symbols. That is significantly more powerful than anything a commented JIT-compile-time system could do, but it comes at a cost of runtime performance degradation. There doesn't seem to be a good middle ground between robust, custom types with a high runtime performance cost and trivial type documenting with no runtime performance cost.
      So far the hinting system has worked well for me because most applications don't require extreme performance, and critical sections could be built without hints. Perhaps the code can be built with some gatekeeping so public portions are type hinted, but critical portions are internal and not typehinted. In this scenario, I doubt I'd find the JIT-compile-time typing to be all that helpful. But I might be convinced otherwise once I see it.

  • @jindoriii
    @jindoriii 2 ปีที่แล้ว

    i love this series

  • @schlopping
    @schlopping 2 ปีที่แล้ว +119

    First pattern matching, now type annotations. They're going the full Python-route, good!

    • @NabekenProG87
      @NabekenProG87 2 ปีที่แล้ว +21

      "Let me copy your homework". It's funny how these two "typeless" script languages are now adding optional types.

    • @timojohn9773
      @timojohn9773 2 ปีที่แล้ว +56

      @@NabekenProG87 because typeless suck for anything but Single-file-scripts

    • @xucongzhan9151
      @xucongzhan9151 2 ปีที่แล้ว +9

      Actually... IIRC the type annotation in Python (or at least the form of it) was heavily inspired by TS. Guido and Anders had a seminar/talk/chat about it a couple of years ago at a conference.

    • @vikingthedude
      @vikingthedude 2 ปีที่แล้ว +4

      Static types with type inference is where languages are settling at now

    • @schlopping
      @schlopping 2 ปีที่แล้ว +4

      @@xucongzhan9151 Either way, it's a good feature, and I'm all for it!

  • @MichiOnline1721
    @MichiOnline1721 2 ปีที่แล้ว

    Was reading this on the news today, thought wtf, watched it on this 3 minute video - which took less than the uninformative article - and now it makes sense thank you!

  • @tanvirkhan6707
    @tanvirkhan6707 2 ปีที่แล้ว

    Wow i am super excited 🥰🥰🥰

  • @RoveWithPavithra
    @RoveWithPavithra 2 ปีที่แล้ว

    Code report 🔥. Please keep posting more new content.

  • @igorto
    @igorto 2 ปีที่แล้ว

    Damn this format is good... So good.

  • @nepnep1057
    @nepnep1057 2 ปีที่แล้ว +1

    interesting what you said about everyone hating the ts compilation step, that's actually something i like about typescript!

  • @daronetster
    @daronetster 2 ปีที่แล้ว

    My favorite news source

  • @bobbybuening
    @bobbybuening 2 ปีที่แล้ว

    1:36 just "do this today". I like this proposal!

  • @nicholas982
    @nicholas982 2 ปีที่แล้ว

    Praying with you on this one 🔥♥️

  • @hardeylim
    @hardeylim 2 ปีที่แล้ว

    The only report I need

  • @Tonevjr
    @Tonevjr 2 ปีที่แล้ว

    Keep those going 🤙

  • @inexistente
    @inexistente 2 ปีที่แล้ว

    let's pray for it get where we expect

  • @5a035
    @5a035 2 ปีที่แล้ว

    love the inflation commentary at the end 🤣

  • @ovirex
    @ovirex 2 ปีที่แล้ว

    I liked the economics report at the end

  • @logichog4181
    @logichog4181 2 ปีที่แล้ว

    thanks for the video

  • @yajirushik2871
    @yajirushik2871 2 ปีที่แล้ว

    This is going to be 🚀🚀🚀🚀

  • @Will4_U
    @Will4_U 2 ปีที่แล้ว +2

    This + the support for Records and Tuples would be a complete miracle for JS.
    But I doubt that it will be implemented quickly, just looking at features being implemented every year by TC39.

    • @elvispalace
      @elvispalace 10 หลายเดือนก่อน

      How long?

  • @gaunterodimm4206
    @gaunterodimm4206 2 ปีที่แล้ว

    Everything is a circle, everything!

  • @_erayerdin
    @_erayerdin 2 ปีที่แล้ว +40

    Kinda like what Python's been doing for all these years. It has an additional syntax for types but it does not even make any difference in runtime.
    The only time that it is used is in IDEs. They use these to do some type checking.

    • @rafadydkiemmacha7543
      @rafadydkiemmacha7543 2 ปีที่แล้ว +9

      I prefer types in PHP. Still optional, but they'd crash your app when the type is wrong.

    • @Marcot348
      @Marcot348 2 ปีที่แล้ว

      I think just adding types is a great advance. Maybe in the future they can add optimizations or strict type checking as optional features?

    • @ainur.rakhmanov
      @ainur.rakhmanov 2 ปีที่แล้ว +2

      Actually runtime is still affected though. You can access all the type hints through __annotations__ and behave accordingly. It is used by libraries like pydantic to perform validation based on type hints.

    • @That_Darned_S
      @That_Darned_S 2 ปีที่แล้ว

      @@rafadydkiemmacha7543 it's the most stupidest language in existence.

    • @rafadydkiemmacha7543
      @rafadydkiemmacha7543 2 ปีที่แล้ว +2

      @@That_Darned_S not really, you should at least try it before spreading myths.

  • @detaaditya6237
    @detaaditya6237 2 ปีที่แล้ว

    So this will be similar to Python's optional type check? Neat!

  • @baluditor
    @baluditor 2 ปีที่แล้ว

    That would be so good.

  • @mfpears
    @mfpears 2 ปีที่แล้ว

    I hate comments are aren't comments. Glad they're doing it right.

  • @a_guy_in_orange7230
    @a_guy_in_orange7230 2 ปีที่แล้ว

    Wow this all sounds great and positive I thought I was watching fir- *inflation reminder* ah. There it is.

  • @tungly1558
    @tungly1558 2 ปีที่แล้ว +1

    I see hope in type safe js in future, yeah =))))

  • @sweetmelon3365
    @sweetmelon3365 2 ปีที่แล้ว

    love it

  • @waseemtahir6740
    @waseemtahir6740 2 ปีที่แล้ว +2

    Man I need that type support so bad. Most of the projects I work on are in plain JS and it's so irritating sometimes to not have type annotations in them.

  • @puppergump4117
    @puppergump4117 2 ปีที่แล้ว

    Legible js sounds pretty nifty

  • @SpaceChicken
    @SpaceChicken 2 ปีที่แล้ว +1

    Immediately feel called out from that M1 MacBook remark, but I can’t disagree with it.

  • @SteveHazel
    @SteveHazel 2 ปีที่แล้ว

    this is the kinda news show i dreamed of on my C=64 back in the 80s

  • @jatmikoherjati6348
    @jatmikoherjati6348 2 ปีที่แล้ว

    Python type hint ? Same energy ? I would say yes 🔥

  • @leoamato6113
    @leoamato6113 2 ปีที่แล้ว +1

    love your videos, this one cames with an macro-economics report haha thank you!

  • @luizAugustoll
    @luizAugustoll 2 ปีที่แล้ว

    I finally discover what ts-check is about

  • @gandharvgarg3444
    @gandharvgarg3444 2 ปีที่แล้ว

    Happy with the build step than ship more code

  • @wilmirosa7076
    @wilmirosa7076 2 ปีที่แล้ว +1

    I like your videos a lot. How much time do you spend to make the video? Do you make a script with what do you would say? What software do you use to record the video, KDenlive? It will be nice to make a video about that!

  • @daelous88
    @daelous88 2 ปีที่แล้ว

    It is a dream for all javascript programmer.

  • @alberto3028
    @alberto3028 ปีที่แล้ว +3

    You don't need ts-check in all your files, just define it once in your jsconfig. The same for use strict. You are welcome.

  • @ryantiller4581
    @ryantiller4581 2 ปีที่แล้ว

    Best channel on TH-cam

  • @B00Mnation
    @B00Mnation 2 ปีที่แล้ว +2

    This is one of the best ideas and most well executed TH-cam series in tech rn. It has tremendous potential to explode your channel’s growth

  • @complex5372
    @complex5372 2 ปีที่แล้ว

    Javascript team deserves more praise.

  • @RicardoSilvaTripcall
    @RicardoSilvaTripcall 2 ปีที่แล้ว

    As I see, this wouldn't end runtime type checking/validation, right?

  • @vivarantx
    @vivarantx 2 ปีที่แล้ว

    this will be a typescript killer

  • @JGBSolutions
    @JGBSolutions 2 ปีที่แล้ว

    this code report is interesting

  • @RSimmz
    @RSimmz 2 ปีที่แล้ว

    Fireship you are fire 😂😂😂😂 I liked the ridiculous ridiculous ridiculous 😂😂😂 at the end 😂😂

  • @TomDoesTech
    @TomDoesTech 2 ปีที่แล้ว +1

    So they saw the suyccess of TypeScript and decided to use Flow instead?

  • @mich_thedev
    @mich_thedev ปีที่แล้ว

    Additional types would be really good in Javascript.

  • @alexawunor8853
    @alexawunor8853 2 ปีที่แล้ว

    Awesome

  • @paolocargnin7926
    @paolocargnin7926 2 ปีที่แล้ว

    *insert Micheal Scott shouting NOOOO, GOD PLEASE NOOO gif here*

  • @rogerthedeveloper8664
    @rogerthedeveloper8664 2 ปีที่แล้ว +1

    What about Runtime error handling? Not only compile time.

    • @RasmusSchultz
      @RasmusSchultz 2 ปีที่แล้ว

      That is one of the problems with this proposal. If it passes, run-time type-checking can literally never happen - because that would be a breaking change for all the incorrectly typed code that this would allow you to deploy. 🙁

  • @andylib
    @andylib 2 ปีที่แล้ว

    Mdn got a new look, could’ve been part of this code report 😇

  • @shegsdev
    @shegsdev 2 ปีที่แล้ว

    //@ts-check has always been a good option (in terms of code doc and type-checking).
    Optional type annotations will be bl*aw*some!

  • @mage1over137
    @mage1over137 2 ปีที่แล้ว

    Is this similar to type annotations in python?

  • @hellelo.5840
    @hellelo.5840 2 ปีที่แล้ว

    Wow finally

  • @ben-brady
    @ben-brady 2 ปีที่แล้ว

    This is the same type system that python uses and it's blissful to work with. I imagine it would be the same in javascript

  • @Rerbun
    @Rerbun 2 ปีที่แล้ว +1

    I think not much can go wrong with the proposal but I'm a bit worried about the new 'reserved' keywords that would be needed for this proposal, interface and type to name 2

  • @azeemcr37
    @azeemcr37 2 ปีที่แล้ว

    For node we could use ts-node

  • @liranpiade4499
    @liranpiade4499 2 ปีที่แล้ว

    We also need pattern matching (there's a library, but still)