News for hackers. Stuff that matters.
Re:What the Hell Is a Deno? by torb-xyz on Thursday June 04, 2020 @01:22AM (#23412796)
Frankly I find TypeScript with strict mode turned on to be a safer and saner than C# and Java because of explicitly nullable types alone. I _never_ get null pointer exceptions in my own TypeScript code. Combined with fairly strict ESLint you get something that catches a lot of problems at compile time.

Of course it's still far cry from being as safe as for example Rust.

And yeah the inconsistency of JavaScript/TypeScript can be frustrating for sure. I think my dream language is one that is simply TypeScript cleaned up to be made consistent and sheds a lot the features and retains a simple core.

Re:What the Hell Is a Deno? by pjmlp on Thursday June 04, 2020 @02:35AM (#23413292)
C# 8 has support for non nullable references.

For lower C# versions and Java you can get your strict mode turned on via static analysis tools.

I have been using Sonar on CI/CD builds since 2008. Static analysis errors break the build, plain and simple.

Also quite convenient for writing sane C and C++ code by the way.

Re:What the Hell Is a Deno? by throwaway894345 on Thursday June 04, 2020 @12:26PM (#23418638)
> I think my dream language is one that is simply TypeScript cleaned up to be made consistent and sheds a lot the features and retains a simple core.

I agree. I think this probably looks a lot like a Rust-lite (GC instead of lifetimes for memory management) or a Go with generics or a mature ReasonML?

Re:What the Hell Is a Deno? by jjjensen90 on Thursday June 04, 2020 @01:41AM (#23412947)
Have you tried Kotlin?
Re:What the Hell Is a Deno? by cutler on Thursday June 04, 2020 @04:49AM (#23414236)
Kotlin.js perhaps.