Portál AbcLinuxu, 27. května 2024 13:55


Nástroje: Začni sledovat (2) ?Zašle upozornění na váš email při vložení nového komentáře.

Vložit další komentář
________________ avatar 6.8.2011 03:29 ________________ | skóre: 5 | blog: _
Rozbalit Rozbalit vše Re: Ošetřování chyb v Go
Odpovědět | Sbalit | Link | Blokovat | Admin
fuj!
13.6.2019 13:12 Gowitek
Rozbalit Rozbalit vše Re: Ošetřování chyb v Go
Odpovědět | Sbalit | Link | Blokovat | Admin
Due to Go’s superior error handling process, the resultant code is neat, safe and bugfree. Golang requires every variable to have a type associated with it. Programmers must return possible errors from functions and handle those returns. The usual way of error handling in Golang is to compare the returned error to nil. A nil value means that no error has occurred and a non-nil value means there is an error. This can be a tedious process for programmers because several functions in the standard library return errors. However, this means that developers have to handle each one of them and the resultant code is error-free. It helps prevent subsequent costs of bug searching,fixing and application downtime.Click to know more:http://bit.ly/2V21CxJ

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.