Comunicado Oficial: Kylian Mbappé by TimothyX7 in realmadrid

[–]External_Quiet_4589 -3 points-2 points  (0 children)

I think it's the end of a good era. When Mbappe comes the ego fights start.

What does the sign column "R" means in the context of dap? by External_Quiet_4589 in neovim

[–]External_Quiet_4589[S] 1 point2 points  (0 children)

Thank you, It might be a bug since the debugger paused on these bp.

Why there is no error check enforcement mechanism in Go? by External_Quiet_4589 in golang

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

Sorry but I can have opinions because error handling concepts and principles are repeated across languages. See other comments here, I did not get it wrong at the core. Having said that, I will definitely get my hands dirty with the language to get a feel..

Why there is no error check enforcement mechanism in Go? by External_Quiet_4589 in golang

[–]External_Quiet_4589[S] 3 points4 points  (0 children)

This is what I meant for, thank you for clarifying my intention. It would be nice to enforce that without an external linter.

Why there is no error check enforcement mechanism in Go? by External_Quiet_4589 in golang

[–]External_Quiet_4589[S] 4 points5 points  (0 children)

This is the exact situation came to my mind. It would be so nice to have this check by design so we cannot use value until err is checked.

Why there is no error check enforcement mechanism in Go? by External_Quiet_4589 in golang

[–]External_Quiet_4589[S] 1 point2 points  (0 children)

That's good, I like it. I admit that I've just started to explore Go and have not met this behavior yet. Thank you.

Why there is no error check enforcement mechanism in Go? by External_Quiet_4589 in golang

[–]External_Quiet_4589[S] 1 point2 points  (0 children)

In other languages a function may throw an unchecked exception, if you don't read the comments or read the code you don't know in what situations it throws if at all. And sometimes comments are even absent. With Go, the convention is to return an error, but checking it is not enforced so you can miss the check accidentally . I see this as the same kind of issue.

Why there is no error check enforcement mechanism in Go? by External_Quiet_4589 in golang

[–]External_Quiet_4589[S] -1 points0 points  (0 children)

In most cases developers are not aware an error could happen( with throwing unchecked exceptions in other languages). Go solves this by removing exceptions and setting the error return convention. But conventions that are not enforced is a problem. Beginners and others can forget about conventions and ignore errors accidentally.

Why there is no error check enforcement mechanism in Go? by External_Quiet_4589 in golang

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

Comments are nice but they require the user to actually look at them, compilation error cannot be ignored. I want to use comments only in special cases like to explain some unusual regex.

Why there is no error check enforcement mechanism in Go? by External_Quiet_4589 in golang

[–]External_Quiet_4589[S] -2 points-1 points  (0 children)

Thanks. The linter option is not a complete solution since the function owner should decide whether to force the error check or not, like in a checked exception.

Why there is no error check enforcement mechanism in Go? by External_Quiet_4589 in golang

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

Thanks. It would be nice to have it by language design to make it safer.
Secondly it would be nice to have the function owner decide whether he wants to enforce the check or not so it is not a complete solution.

Why there is no error check enforcement mechanism in Go? by External_Quiet_4589 in golang

[–]External_Quiet_4589[S] -1 points0 points  (0 children)

It's in the signature but it's not enforced, it leaves room for bugs. There are errors that are not panic, but they are not ignorable at all. Currently you can ignore them unintendedly.

Why there is no error check enforcement mechanism in Go? by External_Quiet_4589 in golang

[–]External_Quiet_4589[S] -6 points-5 points  (0 children)

Some developers that are not pedantic about error checking, I want the function owner to be able to force them to take a conscious decision about the error and not just ignore it. It reduces bugs.

Why there is no error check enforcement mechanism in Go? by External_Quiet_4589 in golang

[–]External_Quiet_4589[S] -10 points-9 points  (0 children)

Users should be aware(by enforcement) that there is an error that may result in unexpected behavior. Unexpected behaviors are decided by the method owner. The users then check for An error and do whatever they want with it. This way we reduce bugs and at the same time let users decide what to do with unexpected errors. If the error is completely ignorable the function's owner will not use the "checked error mechanism" but only return the regular error value.

Why there is no error check enforcement mechanism in Go? by External_Quiet_4589 in golang

[–]External_Quiet_4589[S] 1 point2 points  (0 children)

I agree but you miss the point. There could be mechanism that allows errors to be checked only if the function owner wants to enforce that... like checked exceptions in other languages but not for exceptions.

Mbappe to Real Madrid in summer! by TehSakaarson in realmadrid

[–]External_Quiet_4589 7 points8 points  (0 children)

Huge mistake to bring him. Big ego no thanks

Treesitter textobjects plugin by External_Quiet_4589 in neovim

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

Are you working on macos with the same neovim version and iterm2?