SSoelvsten / en-dk

English-Danish Technical Dictionary of Computer Science
https://ssoelvsten.github.io/en-dk
MIT License
5 stars 4 forks source link

Request: "throw an exception" #19

Closed mlutze closed 4 months ago

mlutze commented 5 months ago

Do you take requests?

I have not been able to find a translation for "throwing an exception" à la Java. I'm using "at kaste et fejl" for the moment, but I'm not convinced that's quite right, especially since Java distinguishes between exceptions (recoverable) and errors (unrecoverable).

SSoelvsten commented 4 months ago

Of course! I should fix the README such that this is much clearer that requests are very welcome. :slightly_smiling_face:

I agree with your take. I'll ask a bit around whether someone knows (or whether we have to "define" one).

Starting slightly in reverse, Stroustrup said something along the lines of "exceptions are exceptional", i.e. they should only happen very few times. Here "exceptional" could be many things, but especially "undtagelsesvis" which also matches the Danish "undtagelse". So, assuming nothing else comes up - that would be my suggestion.

SSoelvsten commented 4 months ago

Bærbak did on-the-fly the same kind of reasoning, so I feel that confirms it is a reasonable translation.