3 ms·
>>I don't consider the Go size pretty small. You realize that Go implements the new template test right? Your linked ones do not (at least the ones I spot chec
by voidlogic 13y ago
>>I don't consider the Go size pretty small.
You realize that Go implements the new template test right? Your linked ones do not (at least the ones I spot checked).
Also, Go is statically typed = win
- laumars 13y ago> Also, Go is statically typed = win Actually I find Perl's type system to make the most sense for web work: 1) Any zero length string or 0 valued int is classed as false, which is handy when checking the returns from query strings et al. 2) You can use eq for string comparison or == for numeric checking, which means which is handy has you can read values from a query string and then compare it against an int without having to do type conversion. Don't get me wrong, I don't have anything against statically typed languages - in fact I normally prefer them. But the way Perl does type checking I find reduces the number of type problems when dealing with web development. That all said, I much prefer working with structured types in Go than in Perl.
- kbenson 13y ago> You realize that Go implements the new template test right? Your linked ones do not (at least the ones I spot checked). hello.go uses more lines defining variables and types than the entirely of many of the alternatives I posted. Obviously they will be a little longer if they implement the fortune handler, but I doubt that will really make much of a difference. > Also, Go is statically typed = win I'm not sure what that has to do with implementation size (which is the only thing I was addressing), but feel free to make a case.