O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Identifying compiler/transpiler errors

We can think of programming as a conversation between you (the programmer) and the machine (the compiler/transpiler). Because Go is a typed language, we can find many errors at compile/transpile time itself. This is a clear advantage to writing vanilla JavaScript where problems (caused by the lack of type checking) can lay hidden and surface at the most inopportune times. Compiler errors are the means by which the machine communicates to us that something is fundamentally wrong with our program, whether it's a mere syntactical issue or the inappropriate use of a type.

kick comes in very handy for displaying compiler errors, since it will show you errors from both the Go compiler and the GopherJS transpiler. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required