• Home
  • Technology
  • Gaming
  • Entertainment
  • World & Business
  • Science
  • Sports
  • AI
HomeTechnologyGamingEntertainmentWorld & BusinessScienceSportsAI
    • Home
    • Technology
    • Gaming
    • Entertainment
    • World & Business
    • Science
    • Sports
    • AI
    AI
    Reaction

    Trade-offs in designing a new JavaScript type system

    Elixir type-system developer José Valim says unsupported JavaScript idioms could require new theory, reduced compatibility or dynamic typing.

    Charlie MarshCM
    1 Source, 1h ago, first seen 1h ago

    TLDR

    José Valim, who helped develop Elixir’s type system, says a new JavaScript type system might struggle to express every idiom precisely. For unsupported idioms, he outlines three choices: develop and prove new theory, reject them at a cost to compatibility, or fall back to dynamic typing. The fallback can limit further static checks, risk runtime mismatches or require runtime checks that may affect performance. He adds that Elixir’s strong-arrows approach may not suit JavaScript.

    Combined views

    65

    1 Source, first seen 1h ago

    Combined views

    65

    1 Source, first seen 1h ago

    3 reposts
    3 reposts

    Sentiment

    Positive——Negative

    Summary

    Not enough discussion yet.

    No sentiment analysis available yet.

    Featured Source

    Sentiment

    Positive——Negative

    Summary

    Not enough discussion yet.

    No sentiment analysis available yet.

    Today's Rank

    —

    Not ranked yet

    Today's Rank

    —

    Not ranked yet

    1 Source

    Charlie Marsh@charliermarshRT @josevalim: @zack_overflow I'd say it is a bit trickier than that. We most likely don't have a type system that can precisely express a…1h

    1 Source

    Charlie Marsh@charliermarshRT @josevalim: @zack_overflow I'd say it is a bit trickier than that. We most likely don't have a type system that can precisely express a…1h