[haiku-development] Re: Plan for NetServices Kit (v2)

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 02 Sep 2021 14:05:30 +0000

I agree about exceptions being outmoded. Most of the newer C/C++
replacement languages such as Rust, Go, Zig and Odin all use fairly
straightforward return value error handling with varying levels of
language support to make it more pleasant for the developer.

If you pick an arbitrary set of language to prove your point, sure.

Swift error handling is quite similar to exceptions in terms of syntax
(but implemented differently, in particular there is no stack unwinding
and exceptions can only propagate one level up to the caller).

Python has exceptions and everyone seems quite happy about it. It's there
in Scala, Kotlin, and Julia too.

Of course, if you look at languages designed by/for C programmers, why
would there be exceptions there? But if you look at languages which
have roots in Java or Python, you have exceptions.

More generally, I'm not sure the argument of authority is valid here.
Each of these languages was designed for a specific context, which is not
ours.

-- 
Adrien.


Other related posts: