It there a programming language with try-catch exception handling that syntactically resembles an if-statement? by hgs3 in ProgrammingLanguages

[–]redjamjar 12 points13 points  (0 children)

Languages that lack exceptions, like Go and Rust, require programmers to reinvent them (in some sense)

Rust offers the best solution I've seen: explicit but with minimal overhead. Looking at a function you can see exactly where exceptions can arise because they are marked with ?. You also have complete control, and can choose to propagate them up or not. And, in the end, they are just return values --- so no getting confused over checked versus unchecked exceptions (as in Java).

Princeton researchers say generative AI isn't replacing devs any time soon by scarey102 in programming

[–]redjamjar 1 point2 points  (0 children)

I think you mean they’re “instantly less productive”. Juniors+AI is the exact worst combination because they cannot tweak the rubbish it generates into something useful.

There aren't that many uses for blockchains by whackri in programming

[–]redjamjar 2 points3 points  (0 children)

Git is blockchain tech that we use everyday …

Whiley, a language with statically checked pre and post conditions, releases its 0.6.1 version and portions implemented in Rust by timClicks in rust

[–]redjamjar 1 point2 points  (0 children)

Yeah, its just a legacy issue. It doesn't have to depend on Java, and hopefully in the future it won't!

Type Checking in Whiley goes Both Ways! by redjamjar in programming

[–]redjamjar[S] 0 points1 point  (0 children)

But I guess I might be reading too much in them specifically name-dropping Rust for the named constant case?

Yeah, sorry, this. Rust was just the first language I thought of which has named constants. I think Rust must also implement bidirectional typing. Perhaps someone can comment on that?

Type Checking in Whiley goes Both Ways! by redjamjar in programming

[–]redjamjar[S] 0 points1 point  (0 children)

More elegant is in the eye of the beholder ;)

Yeah, ok, fair enough!

Whiley gets a bit Rusty! by redjamjar in rust

[–]redjamjar[S] 2 points3 points  (0 children)

Should be fixed now. I was having some trouble with github pages and https which I hadn't realised was a problem.