3 ms·
Doesn't Go basically accomplish that via near instant compile time?
by brightball 11y ago
Doesn't Go basically accomplish that via near instant compile time?
- NhanH 11y agoNot quite, polymorphism is a bit iffy in Go (there is interface, and it's doable but not great). Type inference is extremely limited (this is also due to a weak type system, with comparison point being ML-family languages for examples) . Global type inference is off the picture without generic/ polymorphic typing. I don't think Go achieves the look and feel of working with Python and the like.
- s3nnyy 11y agoThe go philosophy is that inheritance "does not scale" and they deliberately went another route: https://golang.org/doc/faq#inheritance https://golang.org/doc/faq#inheritance
- mtrn 11y agoYes, one of the design goals was to blur the gap between dynamically and statically typed languages by creating a language that is safe to run and fast to compile, read and write.
- djur 11y agoGo doesn't have type inference "even at module or function boundaries"; this aims to.
- niccaluim 11y agoIn my mind, any language that demands a package declaration and a main function doesn't qualify as a "scripting" language.
- eru 11y agoThat's pretty minor, and could be almost trivially rectified with a preprocessor.