News for hackers. Stuff that matters.
Re:Static Typing Where Possible, Dynamic Typing When Needed ... by simplify on Monday January 11, 2016 @12:37AM (#10879015)
I am definitely biased (being the creator and all), but I like the approach JS Zero[1] is taking. Everything is written in a sound, subset of JavaScript, but you can always use an `assume` tag as an escape hatch, allowing you to write "normal" JavaScript when you really need it.

For example, if you're reading records from a SQL database, you don't have to bother wrestling with the type system – just tell it what your data looks like! :)

    let Pet = Object.of({ name: String, happiness: Number })

    $assume `fetchPets : (Number) => Promise( Array(Pet) )`
    function fetchPets (minHappiness) {
      return db('pets').select('*').where('happiness', '>', minHappiness)
    }
Re:Static Typing Where Possible, Dynamic Typing When Needed ... by knocte on Monday January 11, 2016 @12:50AM (#10879071)
[1]?
Re:Static Typing Where Possible, Dynamic Typing When Needed ... by jmiwhite on Monday January 11, 2016 @02:08AM (#10879304)
Re:Static Typing Where Possible, Dynamic Typing When Needed ... by simplify on Monday January 11, 2016 @10:05AM (#10881106)